summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
Commit message (Collapse)AuthorAgeFilesLines
* HDF5 1 8 merge of recent changes and tools (#353)Allen Byrne2021-02-221-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update supported platforms * Merge PR#3 changes from develop * # WARNING: head commit changed in the meantime Merge gcc 10 diagnostics option from develop Merge CMake changes from develop Merge warnings from develop Merge #318 OSX changes from develop Merge tools changes from develop Merge test macros from develop * Format updates * Fix missing semicolon and format fix * Format update * Correct actions, remove java option * Update autotools build files * Add testfiles * Fix configure issue with make flags * Init fapls to default * Update generated files and fix h5repack id closure * update format
* Update HDF5 1.8 copyright headers with updated copyright URL (#148)Larry Knox2020-12-041-1/+1
| | | | | | | * Update URL for COPYING file in copyright headers. * Make fortran copyright headers uniformly spaced. * Update url for Copyright file in c++/src/footer.html.
* Revise gnu-*flags and cmake/HDF*CompilerFlags.cmake files to add warningLarry Knox2020-05-191-60/+9
| | | | | | | flags for GCC compilers version 4.8 and above. Removed files from gnu-warnings that only apply to versions < 4.8. Consolidated warnings from versions < 4.8 that apply to versions >= 4.8 into the 4.8 warnings files.
* Fix ifort warning flag.Larry Knox2020-05-041-16/+17
| | | | | | | | Restore AC_DEFUN([PAC_PROG_FC_DEFAULT_REALisDBLE] in m4/aclocal_fc.m4. Add --enable-symbols, --enable-profiling, and --enable-optimization options to autotools configure; all configure flags for --enable-production and --disable-production should match HDF5 1.10 and 1.12 production and debug default flags.
* Update to use optimization flags, C++ error flags, and correctLarry Knox2020-04-301-17/+16
| | | | libhdf5.settings.in to remove unworkable changes.
* Restrict errors to gcc 4.8 and above.Allen Byrne2020-04-271-0/+2
|
* TRILAB-244 separate CXX warnings and errors from CAllen Byrne2020-04-271-19/+19
|
* Don't add general warnings flags for unsupported old versions of gcc andLarry Knox2020-04-201-2/+4
| | | | | | g++ (older than gcc/g++ 4.2). Correct gnu-cxxflags to determine warnings flags to be added based on C++ compiler version instead of C compiler version.
* Add missing " and update function calls incorrectlyLarry Knox2020-04-131-11/+11
| | | | | | named load_gcc_arguments. Commit changes to gnu-cxxflags to remove unmatched " and to gnu-fflags to not add C warnings flags to H5_FCFLAGS.
* TRILAB-192 - merge changes from developAllen Byrne2020-04-071-224/+67
| | | | Single source, config files, for warnings for both autotools and CMake. Update CMake libraries, tools, tests to use correct flags.
* Fix orphaned tokenAllen Byrne2020-04-011-19/+18
|
* TRILAB-192 merging warnings changes from developAllen Byrne2020-03-311-560/+196
|
* HDFFV-11012, sanitize, warnings and tools idsAllen Byrne2020-02-111-7/+23
|
* Change copyright headers to replace url referring to file to belrknox2017-05-161-6/+4
| | | | removed and replace it with new url for COPYING file.
* [svn-r27723] Updated config/gnu-flags to match the trunk.Dana Robinson2015-09-091-161/+97
| | | | Tested on: h5committest
* [svn-r25209] Description:Quincey Koziol2014-05-211-3/+79
| | | | | | | | | | | | | | | | | | | Bring r25206 & r25207 from trunk to 1.8 branch: r25206: Add new warning flags for gcc 4.9.x r25207: Merge changes from Coverity branch to trunk: r20907: Original issue was #338. Refactored code to clean up allocations consistantly, completely, check all returns, assign initialization values and handle errors. Tested on: MacOSX/64 10.9.3 (amazon) w/C++, FORTRAN & parallel (h5committested on trunk)
* [svn-r24209] Port r24171 from trunk to 1.8 branch.Neil Fortner2013-09-271-5/+0
| | | | | | | | | | | | | | | | | | | Tested: jam, koala, ostrich, platypus (h5committest) Log from r24171: Purpose: Fix problem with gcc 4.8 Description: With optimization enabled, gcc 4.8 inserts garbage into the padding bytes of floating point types when assigning from a literal constant. This caused problems when H5detect.c scanned the bits in floating point types to determine their properties. Modified H5detect.c to scan for padding before further analyzing the type, and to ignore all information in the padding areas. Also removed code that temporarily disabled optimization. Tested: jam, koala, ostrich, platypus (h5committest)
* [svn-r24112] Description:Quincey Koziol2013-09-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r24101 & 24111 from trunk to 1.8 branch: r24101: ======= Description: Clean up warnings, enable new compiler warning flag(s) and bring back changes from Coverity branch: r20813: Remove the dead code as listed for coverity bug #1722. h5committested. r20814: Issue 69: Check return value and throw error if negative return. Also free datatype id on error r20815: Use HDstrncpy. --gh r20816: Replaced one last HDstrcat call with HDstrncat to resolve coverity issue 832. r20817: Use HDstrncpy and HDstrncat. --gh r20818: Purpose: Fix valgrind issues with h5jam Description: Modified h5jam to free strings strdup'd in parse_command_line before exit. Note that they may still not be freed in case of error, due to the widespread use of exit(). r20819: Issue 80: change loop to use int as loop index. r20820: Maintenance: Fixed the bug found by coverity CID 788 There were two problems with this function: 1) it tried to unnecessary free NULL pointer 2) it tried to allocate c_name buffer that is done by H5Pget_class_name r24111: ======= Description: Restrict GCC diagnostic pragmas to only gcc 4.6+ Tested on: Mac OSX 10.8.4 (amazon) w/gcc 4.8.1, C++ & FORTRAN (too minor to require h5committest)
* [svn-r24018] Bug fix: HDFFV-8500Albert Cheng2013-08-171-0/+5
| | | | | | | | | | | The new gcc v4.8.* compilers does not work well with dt_arith which failed in production mode. Solution: A temporary patch by removing any optimization (-O*) from the PROD_CFLAGS so that dt_arith will pass for now. A more through investigation is needed. Tested: Jam, platypus and Koala where it failed and now passes.
* [svn-r23592] Description:Quincey Koziol2013-04-151-6/+77
| | | | | | | | | Bring r23584 from trunk to 1.8 branch: Update with new compiler warnings for gcc 4.8.x Tested on: Mac OSX/64 10.8.3 (amazon) w/gcc 4.8.0
* [svn-r22223] Description:Quincey Koziol2012-04-011-1/+75
| | | | | | | Update GCC compiler flags for new 4.7.0 release. Tested on: Mac OSX/64 10.7.3 (amazon) w/gcc 4.7.0
* [svn-r22039] Fix for HDFFV-7878.Larry Knox2012-03-091-1/+7
| | | | | | | | | | | gnu-flags Don't add gcc flags for intel compiler even though its version display includes "gcc ". intel-flags Extend intel version to include icc-12*. Tested on jam, koal, ostrich with h5committest. Chedcked in to trnk last week.
* [svn-r20562] Description:Quincey Koziol2011-04-201-2/+2
| | | | | | | | | Bring r20561 from trunk to 1.8 branch: Remove C++ specific flag from C compilation flags, for gcc 4.5 & 4.6 Tested on: FreebSD/64 8.2 (freedom) w/gcc 4.6
* [svn-r20540] Description:Quincey Koziol2011-04-181-3/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r20538 & r20539 from trunk to 1.8 branch: Update with new warning flags for gcc 4.6.x Bring Coverity changes back to trunk: r20276: Add recursive is vlen string function. Cleanup resource leaks for issues: 200,202,329,688,811,812 r20277: Check types and close by adding error section: issue 687 r20278: Replaced implicit pointer conversion with (ocrt_info.new_obj != NULL). r20280: Addressed coverity issues 927-929 & 583. The real issue is failure to check file name length -- at least at the H5FD interface level. This needs more work, but at least I have dealt with the issue in H5FDfamily.c r20337: H5O_type_t obj_type = H5O_TYPE_UNKNOWN; r20338: Added udata.name = NULL; to prevent potential uninitialized use after done: label. r20339: coverity issues: 686,828,1670-1673,1707-1711 Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode FreeBSD/32 8.2 (loyalty) w/gcc4.6, in debug mode FreeBSD/64 8.2 (freedom) w/gcc4.6, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
* [svn-r18631] Description:Quincey Koziol2010-04-271-16/+4
| | | | | | | | | | | | | Bring r18630 from trunk to 1.8 branch: Fix remaining aliasing problems and enable optimizations w/gcc now. This addresses the remaining issues for Bug#1398. Tested on: Mac OS X/32 10.6.3 (amazon) in debug mode Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode (h5committested on trunk)
* [svn-r18606] Description:Quincey Koziol2010-04-221-4/+65
| | | | | | | | | | Bring r18605 from trunk to 1.8 branch: Add new warning flags for gcc 4.5.x Tested on: FreeBSD/32 6.3 (duty) w/gcc 4.5 FreeBSD/64 6.3 (liberty) w/gcc 4.5
* [svn-r17217] Bug fix (1468)Albert Cheng2009-07-221-2/+4
| | | | | | | | | | | | | | PathScale was mistaken as the Gcc compiler such that gcc flags were added to it but PathScale did not honor many of them. (e.g. -Wvariadic-macros, -Wold-style-definition, -Winit-self, -Wvariadic-macros, -Wmissing-include-dirs, -Winit-self, -Wc++-compat) Solution: Added a pre-condition to detect pathScale compiler before Gcc is accepted. Tested: Sandia Glory where PathScale compiler is available.
* [svn-r16920] Description:Quincey Koziol2009-05-051-2/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge these trunk revisions which occurred during the 1.8.3 release code freeze back to the 1.8 branch: From Quincey: 16845 16847 16849 16851 16858 16869 16897 From Ray: 16859 16880 From Allen: 16863 Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.6 (amazon) in debug mode Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
* [svn-r16790] Bug Fix (Bug 1398):Albert Cheng2009-04-201-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | For gcc v4.3 and v4.4, with production mode, if -O3 is used, H5Tinit.c would fail to compile. Actually bad H5Tinit.c is produced. If -O (same as -O1) is used, H5Tinit.c compiled okay but test/dt_arith would fail with: Testing hard normalized long double -> signed char conversions time: comm and terminated abnormally When -O0 (no optimizatio) is used, H5Tinit.c compilete okay and all tests passed. Solution: Changed the config/gnu-flags to use -O0 for gcc v4.3 and 4.4 for production flags for now so that build and tests would work. Still need to investigate if the error is due to Gcc optimization bug or our code errors. Tested: In liberty with gcc43 and gcc44. Also, tested in jam and smirom with older versions of gcc. There are no gcc 43 or 44 compilers installed in other THG machines that I know.
* [svn-r16493] revert gcc PROD_CFLAGS to "-O", which was incorrectly changed ↵Allen Byrne2009-02-191-1/+1
| | | | by rev 16490.
* [svn-r16490] Fixed bug #1459 by eliminating the macro long_long and ↵Allen Byrne2009-02-181-1/+1
| | | | | | | | | replacing all instances with long long. Tested: h5comittest fedora 10 x64 XP32, VNET
* [svn-r15869] Description:Quincey Koziol2008-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r15868 from trunk to 1.8 release branch: Correct a minor error in file free space allocation which was affecting the 'multi' VFD and preventing some tests from fully working with it. Wholesale revisitation of all the places where tests were disabled with various VFDs and remove or correct all these so that _only_ the tests which _really_ can't work with particular VFDs are skipped during a 'make check-vfd' test. Tested on: Mac OS X/32 10.5.5 (amazon) in debug mode Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
* [svn-r15214] Description:Quincey Koziol2008-06-131-4/+55
| | | | | | | Fix gcc 4.2 flag that was put in gcc 4.1 section Tested on: Eyeballed & man pages
* [svn-r15212] Description:Quincey Koziol2008-06-131-15/+66
| | | | | | | | | | | Bring back revision 15211 from trunk: Update the gcc flags for version 4.3 Clean up warnings Tested on: Mac OS X/32 10.5.3 (amazon)
* [svn-r15006] Purpose: configure cleanupMike McGreevy2008-05-151-9/+5
| | | | | | | Description: cleaning up configure related to removal of --disable-hsizet flag, which we no longer support. Tested: kagiso
* [svn-r14942] Maintenance: Merged new Fortran APIs and tests from trunk into ↵Elena Pourmal2008-05-061-3/+3
| | | | | | | | | | | hdf5_1_8 branch (used svn merge -r 14505:14941 http://svn.hdfgorup.uiuc.edu/hdf5/trunk/fortran command). Updated MANIFEST Disabled -O3 optimization for gcc 4.3 (long due check-in) Platforms tested: kagiso with PGI compilers, smirom with g95 and v16 option, linew
* [svn-r13312] Updated copyright notice.Albert Cheng2007-02-141-2/+3
|
* [svn-r12609] Description:Quincey Koziol2006-08-221-6/+30
| | | | | | | | | | Comment out the use of the "-Wpadded" flag, it's generating far too many warnings that are impossible to correct and probably making it harder to see other warnings that are more important. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12301] Purpose:James Laird2006-04-251-41/+41
| | | | | | | | | | | | | | H5_CFLAGS change Description: Converted a few platforms to use H5_CFLAGS to "test the waters" Solution: Modified a few config/* files to use H5_CFLAGS for non-essential flags. Platforms tested: mir, heping
* [svn-r12154] Purpose:James Laird2006-03-241-2/+8
| | | | | | | | | | | | | | | Removed -march flag Description: The -march optimization flag is bad in some circumstances Solution: Prevented HDF5 from adding the -march archicture-specific optimization flag, so that users could have one version of HDF5 used by several different machines. Platforms tested: heping (one of the few platforms that affected by this small change)
* [svn-r11852] Purpose:Quincey Koziol2006-01-021-3/+44
| | | | | | | | | | | Code cleanup/update Description: Update compiler flags for gcc 4.1.x & start cleaning up some of the C++ compatibility Platforms tested: FreeBSD 4.11 (sleipnir) w/gcc 4.1 and/or g++
* [svn-r11834] Purpose:Quincey Koziol2005-12-241-1/+1
| | | | | | | | | | | | Bug fix Description: Tone down the optimization flags for gcc 4.2.x in the same way as we do for all the other gcc 3/4 builds, to avoid datatype conversion issues. Platforms tested: FreeBSD 4.11 (sleipnir) w/gcc 4.2 Not tested by h5committest
* [svn-r11614] Frank Baker2005-10-281-1/+1
| | | | | | | Description: Correct typo in copyright notice. Platforms tested: Ran hdf5/bin/chkcopyright without errors.
* [svn-r11592] Frank Baker2005-10-211-0/+13
| | | | | | | | Description: Add source code copyright notice; comment symbols vary by type of file. Platforms tested: No changes that should cause any problems. Nonetheless, the tree will be checked out fresh and tests run immediately post-commit.
* [svn-r10723] Purpose:Quincey Koziol2005-05-041-2/+6
| | | | | | | | | | | Bug fix (sorta) Description: Turn down the optimization level for gcc 4.1 also. Platforms tested: FreeBSD 4.11 (sleipnir) Not tested w/h5committest
* [svn-r9569] Purpose:Quincey Koziol2004-11-241-7/+42
| | | | | | | | | | | | Update flags Description: Update gcc compiler flags to support the early gcc 4.0 snapshots available on sleipnir Platforms tested: FreeBSD 4.10 (sleipnir) w/gcc 4.0 snapshot Too minor to require h5committest
* [svn-r9407] Purpose:Quincey Koziol2004-10-121-9/+5
| | | | | | | | | | | | | | | | | | | | Code cleanup/bug fix Description: Remove the undocumented "$NOFP" shell variable which would allow production builds without removing the stack frame. This was cascading between C and FORTRAN builds and causing problems. Solution: Hard-code removing the stack frame for now. Users would have needed to read the configure scripts anyway, so there's not really much benefit to the extra knob. Users who need this functionality (production builds with stack frames) are debugging probably, so they will need to modify the script and build their own version of the library now. Platforms tested: Linux 2.4 (verbena) Too minor to require h5committest
* [svn-r9385] *** empty log message ***Quincey Koziol2004-10-091-43/+35
|
* [svn-r8884] Purpose:Albert Cheng2004-07-151-72/+68
| | | | | | | | | | | | | | | | | | | | | Bug fix Description: It uses the value of $ARCH as a gcc option but the linux clusters at NCSA define $ARCH as environment variable with values that are not a valid compiler option. That caused the configure to fail because it was not able to compile at all. Solution: Change ARCH to lower case $arch (convention dictates environment variables are upper cases.) Also preset $arch to null and do not honor any pass it values. Platforms tested: Attempted to run h5committest but sol was failing due to /tmp filled. Copper and verbena passed. Also passed in TG-NCSA. Misc. update:
* [svn-r8728] Purpose:Quincey Koziol2004-06-231-18/+40
| | | | | | | | | | | | | Code cleanup & addition Description: Add new warnings for gcc 3.4.x Re-work production mode compile flags to work better. Platforms tested: FreeBSD 4.10 (sleipnir) h5committest