| commit | 5335b0439c3df66f43123d83fcbab16ea3b3ecba | [log] [tgz] |
|---|---|---|
| author | Tom de Vries <tdevries@suse.de> | Mon May 02 22:27:03 2022 +0200 |
| committer | Tom de Vries <tdevries@suse.de> | Mon May 02 22:27:03 2022 +0200 |
| tree | c9d163132d71ba786987e6f4927f24a20dbc2621 | |
| parent | 95929abb498786d9dce36bb94b6c3f1d63178956 [diff] |
[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.