From: jakub Date: Tue, 17 Apr 2018 21:38:45 +0000 (+0000) Subject: PR rtl-optimization/85431 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=269483bb5b8d079ffd3523ae32d7acd81ead5e60;p=thirdparty%2Fgcc.git PR rtl-optimization/85431 * dse.c (record_store): Ignore zero width stores. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259448 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cce4d3ddb9b7..1fba2d92215d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2018-04-17 Jakub Jelinek + PR rtl-optimization/85431 + * dse.c (record_store): Ignore zero width stores. + PR sanitizer/85230 * asan.c (handle_builtin_stack_restore): Adjust comment. Emit __asan_allocas_unpoison call and last_alloca_addr = new_sp before diff --git a/gcc/dse.c b/gcc/dse.c index 1ef8f642719f..26c6007b9ed8 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -1417,6 +1417,9 @@ record_store (rtx body, bb_info_t bb_info) return 0; } + if (known_eq (width, 0)) + return 0; + if (group_id >= 0) { /* In the restrictive case where the base is a constant or the