diff options
author | Mark Wielaard <mjw@redhat.com> | 2014-09-23 11:06:57 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2014-09-23 11:06:57 +0000 |
commit | 0043a6c9b9b7ad956c5db232e46b2b760ada0cec (patch) | |
tree | 68e2de7310100b3e2764d6485db8fb53e26ec603 /gcc/tree.c | |
parent | 6c979aa1bf4cb88c7934cea3453802d5281f7dff (diff) | |
download | gcc-0043a6c9b9b7ad956c5db232e46b2b760ada0cec.zip gcc-0043a6c9b9b7ad956c5db232e46b2b760ada0cec.tar.gz gcc-0043a6c9b9b7ad956c5db232e46b2b760ada0cec.tar.bz2 |
gcc-gdb-test.exp: Handle old GDB "short int" and "long int" types.
Old GDB might show short and long as short int and long int. This made
gcc.dg/guality/const-volatile.c ans restrict.c fail on older GDBs.
According to the patch that changed this in newer versions of GDB
this was a bug: https://sourceware.org/ml/gdb-patches/2012-09/msg00455.html
The patch transforms the types "short int" and "long int" coming from
GDB to plain "short" and "long". And a variant has been added to the
const-volatile.c testcase to make sure short and long long are handled
correctly now with older GDB.
gcc/testsuite/ChangeLog
* lib/gcc-gdb-test.exp (gdb-test): Transform gdb types "short int"
and "long int" to plain "short" and "long".
* gcc.dg/guality/const-volatile.c (struct bar): New struct
containing short and long long fields.
(bar): New variable to test the type.
From-SVN: r215501
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions