typedef unsigned int gcc_word __attribute__((mode(word)));
and
typedef unsigned int gcc_unwind_word __attribute__((mode(unwind_word)));
define the largest unsigned integer types which can be stored in a
general purpose register, which may not be the pointer type. For x32,
they aren't pointer nor unsigned long. We should
- Make getUnwindWordWidth and getRegisterWidth virtual,
- Override them for x32, similar to hasInt128Type.
- Use getRegisterWidth for attribute((mode(word)));
This fixes PR 24706.