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: [PATCH, PR 57748] Check for out of bounds access


> if bitregion_start/end are used after the adjust_address call then they have
> to be adjusted (or bitpos left in place).  In fact why we apply byte-parts
> of bitpos here only if offset != 0 is weird.

Presumably to be able to do arithmetic on symbols when the offset is variable, 
which can save one addition in the final code.

-- 
Eric Botcazou


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