diff options
author | Tom de Vries <tdevries@suse.de> | 2022-05-02 22:27:03 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-05-02 22:27:03 +0200 |
commit | 5335b0439c3df66f43123d83fcbab16ea3b3ecba (patch) | |
tree | c9d163132d71ba786987e6f4927f24a20dbc2621 /gdb/testsuite/gdb.mi | |
parent | 95929abb498786d9dce36bb94b6c3f1d63178956 (diff) | |
download | binutils-5335b0439c3df66f43123d83fcbab16ea3b3ecba.zip binutils-5335b0439c3df66f43123d83fcbab16ea3b3ecba.tar.gz binutils-5335b0439c3df66f43123d83fcbab16ea3b3ecba.tar.bz2 |
[gdb/testsuite] Fix gdb.cp/align.exp with gcc 12.1 / 11.3
Starting with gcc 12.1 / gcc 11.3, for test-case gdb.cp/align.exp we run into:
...
align.cc:29:23: error: invalid application of 'alignof' to a void type^M
29 | unsigned a_void = alignof (void);^M
| ^~~~~~~~~~~~~~^M
...
Fix this by using __alignof__ instead.
Tested on x86_64-linux, with gcc 7.5.0, gcc 12.1 and clang 12.0.1.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
0 files changed, 0 insertions, 0 deletions