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

josh at joshtriplett dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 6 00:08:00 GMT 2014


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

--- Comment #15 from Josh Triplett <josh at joshtriplett dot org> ---
(In reply to Tom Tromey from comment #14)
> (In reply to Josh Triplett from comment #11)
> > 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.

Given that it only applies if you use the attribute, enabling it by default
seems even better than putting it in -Wall, unless there's some fundamental
objection to that.



More information about the Gcc-bugs mailing list