libstdc++/77795 Only declare ::gets for C++98 and C++11
authorJonathan Wakely <jwakely@redhat.com>
Fri, 30 Sep 2016 18:28:53 +0000 (19:28 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 30 Sep 2016 18:28:53 +0000 (19:28 +0100)
commit36105dbdab0fe4a20682d6d8efc6da7fceccef07
tree8511f47ee755991195e78dd04a9517d9681e2667
parentb2861325a9bd0760aa921c0b76554785a9d2a46b
libstdc++/77795 Only declare ::gets for C++98 and C++11

PR libstdc++/77795
* acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): Use -std=gnu++11 to check
for gets.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/c_global/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Only declare
for C++98 and C++11.
* include/c_std/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Likewise.
* testsuite/27_io/headers/cstdio/functions_neg.cc: New test.

From-SVN: r240672
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/include/c_global/cstdio
libstdc++-v3/include/c_std/cstdio
libstdc++-v3/testsuite/27_io/headers/cstdio/functions_neg.cc [new file with mode: 0644]