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] Add some checking for cfgexpand and partitioning


On 10/17/07, Andrew_Pinski@playstation.sony.com
<Andrew_Pinski@playstation.sony.com> wrote:
> Hi,
>   Currently we have no checking for partitioning of stack variables.  So
> currently we could end up with the case where the offset inside a parition
> is greater than the size of the partition itself.  This patch adds this
> check.  We ran into a bug (when modifing the paritioning code) where we
> would have this case, it seems better to add a check for it so it does not
> happen when we submit this enhancement.
>
> OK? Bootstrapped and tested on powerpc64-linux-gnu with no regressions.

Ok.

Thanks,
Richard.

>
> ChangeLog:
>         * cfgexpand.c (expand_stack_vars): Add checking to make sure
>         that the offset of a variable is not greater than the size
>         of the paritition.
>
>
>
>
>


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