Open Quuxplusone opened 3 years ago
Bugzilla Link | PR49562 |
Status | NEW |
Importance | P enhancement |
Reported by | John Paul Adrian Glaubitz (glaubitz@physik.fu-berlin.de) |
Reported on | 2021-03-12 09:50:08 -0800 |
Last modified on | 2021-03-12 12:46:53 -0800 |
Version | trunk |
Hardware | PC Linux |
CC | jrtc27@jrtc27.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk, ro@gcc.gnu.org |
Fixed by commit(s) | |
Attachments | |
Blocks | PR48650 |
Blocked by | |
See also |
On a sparc64, in bits/wordsize.h, we have:
#if defined __arch64__ || defined __sparcv9
# define __WORDSIZE 64
# define __WORDSIZE_TIME64_COMPAT32 1
#else
# define __WORDSIZE 32
# define __WORDSIZE32_SIZE_ULONG 0
# define __WORDSIZE32_PTRDIFF_LONG 0
# define __WORDSIZE_TIME64_COMPAT32 0
#endif
for -mcpu=v9 and -m32, gcc defines:
glaubitz@gcc202:~$ echo | gcc -E -dM -mcpu=v9 -m32 - |grep v9
#define __sparc_v9__ 1
glaubitz@gcc202:~$
while clang defines:
glaubitz@gcc202:~$ echo | /home/glaubitz/llvm-project/stage1.install/bin/clang -
E -dM -mcpu=v9 -m32 - |grep v9
#define __sparc_v9__ 1
#define __sparcv9 1
#define __sparcv9__ 1
glaubitz@gcc202:~$
Reported in glibc as https://sourceware.org/bugzilla/show_bug.cgi?id=27574