[Bug middle-end/66110] uint8_t memory access not optimized

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Mon May 18 20:43:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66110

--- Comment #13 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I concur that it would be valid to define those typedefs to be extended 
integer types withing the special aliasing properties.  The first 
suggestion of that on the GCC lists that I know of is 
<https://gcc.gnu.org/ml/gcc/2000-05/msg01106.html>.  However, it was noted 
in <https://gcc.gnu.org/ml/gcc/2000-07/msg00155.html> that there would be 
C++ issues.  I see that C++ does now have extended integer types, which it 
didn't at that time, but there would still be questions of mangling 
(changing typedefs from standard headers breaks the library ABI for 
anything using those types in C++ interfaces, because of changed 
mangling).  And of course the question of what expectations might be 
broken in C by making these typedefs into extended integer types.

Cf <https://gcc.gnu.org/ml/gcc-patches/2002-01/msg01941.html> implementing 
a char_no_alias_everything attribute.



More information about the Gcc-bugs mailing list