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] Fix size of array with zero-sized element in Ada


On Fri, Oct 2, 2009 at 1:44 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> On the no-undefined-overflow branch yes, and it can't hurt - can it?
>
> It's overkill in 99.99% of the cases, including in Ada, that's why the call to
> integer_zerop is only made when strictly necessary in the patch.

It's cheap and makes the code smaller and easier to read.

Richard.


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