public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1662] Also check type being cast to
@ 2023-06-09 16:37 Andrew Macleod
  0 siblings, 0 replies; only message in thread
From: Andrew Macleod @ 2023-06-09 16:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5612aa4d06594166c0ee848dc733bb9458c1bdbf

commit r14-1662-g5612aa4d06594166c0ee848dc733bb9458c1bdbf
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Fri Jun 9 10:17:59 2023 -0400

    Also check type being cast to
    
    before casting into an irange, make sure the type being cast into
    is also supported.
    
            PR ipa/109886
            * ipa-prop.cc (ipa_compute_jump_functions_for_edge): Check param
            type as well.

Diff:
---
 gcc/ipa-prop.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc
index ab6de9f10da..4e9a307ad4d 100644
--- a/gcc/ipa-prop.cc
+++ b/gcc/ipa-prop.cc
@@ -2405,6 +2405,7 @@ ipa_compute_jump_functions_for_edge (struct ipa_func_body_info *fbi,
 		 of this file uses value_range's, which only hold
 		 integers and pointers.  */
 	      && irange::supports_p (TREE_TYPE (arg))
+	      && irange::supports_p (param_type)
 	      && get_range_query (cfun)->range_of_expr (vr, arg)
 	      && !vr.undefined_p ())
 	    {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-09 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 16:37 [gcc r14-1662] Also check type being cast to Andrew Macleod

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).