c-parser.c (disable_extension_diagnostics): Save warn_overlength_strings.
authorTom Tromey <tromey@redhat.com>
Mon, 14 Mar 2011 17:58:12 +0000 (17:58 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 14 Mar 2011 17:58:12 +0000 (17:58 +0000)
commitb3ab9ea2979fd0fcc2a3eff1f0c417c5e6f27f35
tree2f7867edf299867952cbd5c600cffe758a60b115
parentd8d4db3345ec3271a5edf4bd84e999662cd8e2e2
c-parser.c (disable_extension_diagnostics): Save warn_overlength_strings.

gcc
* c-parser.c (disable_extension_diagnostics): Save
warn_overlength_strings.
(restore_extension_diagnostics): Restore warn_overlength_strings.
gcc/testsuite
* gcc.dg/Woverlength-strings-pedantic-c89-ext.c: New file.
* gcc.dg/Woverlength-strings-pedantic-c90-ext.c: New file.
* gcc.dg/Woverlength-strings-pedantic-c99-ext.c: New file.

From-SVN: r170947
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c89-ext.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c90-ext.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-ext.c [new file with mode: 0644]