This is the mail archive of the gcc@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: PR 25512: pointer overflow defined?


Gabriel Dos Reis wrote:

Robert Dewar <dewar@adacore.com> writes:

[...]

| So please don't take my comments as supporting dubious optimizations
| of pointer arithmetic.
| | For me the only practical acceptable implementation of pointers in C
| is to use lineary addresses as integers, and implemnet wrap around
| arithmetic on these values.


This is more reason for us (in addition of the standard requirement)
to document what the mapping for T* -> integer is.


OK, now I see where you are coming from -- yes, makes sense



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