]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc-gdb-test.exp: Handle old GDB "short int" and "long int" types.
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Sep 2014 11:06:57 +0000 (11:06 +0000)
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Sep 2014 11:06:57 +0000 (11:06 +0000)
commite2970d9a9fc58d1d65bf08c2778c3426b9e57640
tree68e2de7310100b3e2764d6485db8fb53e26ec603
parent0d0f5dc54f1d0bb984361a48d4a525621b8052c5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215501 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/const-volatile.c
gcc/testsuite/lib/gcc-gdb-test.exp