base,scons: `-wno-deprecated-copy` added for hdf5.cc with GCC
authorBobby R. Bruce <bbruce@ucdavis.edu>
Fri, 24 Jul 2020 01:22:09 +0000 (18:22 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 29 Jul 2020 00:35:00 +0000 (00:35 +0000)
commit0f4ecba2a9a82ddec60c659090f2b8bb32da9886
tree7bc932fe6e509e95e1093fd0028e4aeff1988b6a
parent44807669a048f0beb37df6a522246515038993dd
base,scons: `-wno-deprecated-copy` added for hdf5.cc with GCC

As highlighted by Ciro here:
https://gem5-review.googlesource.com/c/public/gem5/+/31216, and
here: https://gem5.atlassian.net/browse/GEM5-365,  It appears that GCC
versions >= 9 requires `-wno-deprecated-copy` which was removed in
commit: https://gem5-review.googlesource.com/c/public/gem5/+/31216.
`-wno-deprecated-copy` appears to work for all versions of GCC. Clang
does not require `-wno-deprecated-copy` nor `-wno-deprecated` for
sucessfull compilation. Therefore branching has been introduced to the
SConscript to address this and simplify the solution.

Change-Id: I233b32aa945d479dd429bb5591272608ba342d8d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31754
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/SConscript