diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-01-31 22:28:16 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-02-01 21:00:20 +0000 |
commit | 277dd6ea416718ba5493023b5a4660ecdbaf936c (patch) | |
tree | 0ffaec3b405c5629ee9165b3d62f134d51620570 /gcc | |
parent | 2d2e163d12f64a5e68f9e0381751ed9d5d6d3617 (diff) | |
download | gcc-277dd6ea416718ba5493023b5a4660ecdbaf936c.zip gcc-277dd6ea416718ba5493023b5a4660ecdbaf936c.tar.gz gcc-277dd6ea416718ba5493023b5a4660ecdbaf936c.tar.bz2 |
libstdc++: Fix std::random_device for avr
This fixes a build failure that affects avr, but could affect other
targets in theory. The _M_fini function should not try to use ::open or
::fopen if _GLIBCXX_USE_DEV_RANDOM is not defined, because no file can
ever have been opened.
libstdc++-v3/ChangeLog:
* src/c++11/random.cc (random_device::_M_fini): Do not try to
close the file handle if the target doesn't support the
/dev/random and /dev/urandom files.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions