This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Further C front end tests


On Mon, 15 Nov 2004, Zack Weinberg wrote:

> The thing I think we need to continue allowing, as long as the
> arithmetic-on-void* extension remains, is &ptr[N].

Given the mandatory warning "dereferencing 'void *' pointer" for this I'd 
not expect many people to be using it rather than ptr+N, but with my 
updated patch that gets just the "dereferencing 'void *' pointer" with no 
options, plus an extra pedwarn (as now) with -pedantic or -Wpointer-arith.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]