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] |
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. Thanks, Andrew Pinski 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.
Attachment:
addchecking.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |