Peter N Lewis wrote:
Is there any compiler directives to control pointer arithmetic directly, or to turn on/off the cast-align warning "cast increases required alignment of target type"?
Currently I can use the $X to allows pointer arithmetic, but what else does that allow? Currently I use:
{$no-typed-address,X+,no-ignore-function-results}
but I worry about what other things like ignore-function-results $X+ ,might be "giving" me.
In the next release, `--extended-syntax' will be equivalent to
--ignore-function-results --pointer-arithmetic --cstrings-as-strings -Wno-absolute
(which is what it did so far, now there will be individual options).
Also, I'd like to be able to disable the cast-align warning in specific places, but I couldn't find a compiler directive to control that -
Other than the global `{$W-}' (or working around it by extra pointers or so), no. (And I don't think there should be one since doing so is a real problem.)
is there any way to feed them through to gcc?
All options that the C frontend understands are passed to it when compiling C files from GPC.
Frank