public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR98160-fix-warn-dealloc-fix)] Fix ICE in warn_dealloc_offset
@ 2020-12-23 14:30 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2020-12-23 14:30 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c4582ec407de10fecfc02bb675947a51351a19aa

commit c4582ec407de10fecfc02bb675947a51351a19aa
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Dec 23 15:29:24 2020 +0100

    Fix ICE in warn_dealloc_offset
    
    gcc/ChangeLog:
    
            PR tree-optimization/98160
            * builtins.c (warn_dealloc_offset): Handle OBJ_TYPE_REF as
            def_stmt.

Diff:
---
 gcc/builtins.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/builtins.c b/gcc/builtins.c
index 28e44445ab2..057a5b1a973 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -13410,7 +13410,7 @@ warn_dealloc_offset (location_t loc, tree exp, const access_ref &aref)
 	  if (is_gimple_call (def_stmt))
 	    {
 	      tree alloc_decl = gimple_call_fndecl (def_stmt);
-	      if (!DECL_IS_OPERATOR_NEW_P (alloc_decl))
+	      if (alloc_decl == NULL_TREE || !DECL_IS_OPERATOR_NEW_P (alloc_decl))
 		return false;
 	    }
 	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/PR98160-fix-warn-dealloc-fix)] Fix ICE in warn_dealloc_offset
@ 2020-12-23 14:34 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2020-12-23 14:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4c82d766f12adeb7b9d0a47c8b2bd9822fd6fcfb

commit 4c82d766f12adeb7b9d0a47c8b2bd9822fd6fcfb
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Dec 23 15:29:24 2020 +0100

    Fix ICE in warn_dealloc_offset
    
    gcc/ChangeLog:
    
            PR tree-optimization/98160
            * builtins.c (warn_dealloc_offset): Handle OBJ_TYPE_REF as
            def_stmt.

Diff:
---
 gcc/builtins.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/builtins.c b/gcc/builtins.c
index 28e44445ab2..057a5b1a973 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -13410,7 +13410,7 @@ warn_dealloc_offset (location_t loc, tree exp, const access_ref &aref)
 	  if (is_gimple_call (def_stmt))
 	    {
 	      tree alloc_decl = gimple_call_fndecl (def_stmt);
-	      if (!DECL_IS_OPERATOR_NEW_P (alloc_decl))
+	      if (alloc_decl == NULL_TREE || !DECL_IS_OPERATOR_NEW_P (alloc_decl))
 		return false;
 	    }
 	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-23 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 14:30 [gcc(refs/users/marxin/heads/PR98160-fix-warn-dealloc-fix)] Fix ICE in warn_dealloc_offset Martin Liska
2020-12-23 14:34 Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).