This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/85230] asan: false positives in kernel on allocas
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Apr 2018 11:53:46 +0000
- Subject: [Bug sanitizer/85230] asan: false positives in kernel on allocas
- Auto-submitted: auto-generated
- References: <bug-85230-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85230
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 43919
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43919&action=edit
gcc8-pr85230.patch
So, if you want to add STACK_DYNAMIC_OFFSET to new_sp for the second argument,
then we could do either what this patch does (i.e. pass new_sp +
(virtual_stack_dynamic_rtx - stack_pointer_rtx) as second argument) and rely on
cse/forwprop/combine to optimize it into new_sp (if STACK_DYNAMIC_OFFSET is 0)
or to just addition of some constant, or introduce a new virtual pseudo
register that vregs pass would map directly to dynamic_offset.