[Bug c/59850] Support sparse-style pointer address spaces (type attributes)

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 5 20:12:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59850

--- Comment #14 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Josh Triplett from comment #11)

> Without -Wcast-to-as, you won't get a warning for unforced casts that add an
> address space.

Thanks!

> Personally, I'd actually suggest merging the two in GCC, and always issuing
> both sets of warnings.  I'd also suggest including the warnings in GCC's
> -Wall, given that you'll only see them if you explicitly use an
> address_space attribute.

My current patch adds just -Waddress-space and enables this
warning by default -- similar to what was decided for -Wdesignated-init.
This seems like something that might be
discussed and changed during the patch submission though.



More information about the Gcc-bugs mailing list