public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-8-branch)] nvptx: Fix up nvptx build against latest libstdc++ [PR100375]
@ 2021-05-14 14:56 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-05-14 14:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1306ca8ae5477bd4872b85018e5db2ee6a5ea8a4

commit 1306ca8ae5477bd4872b85018e5db2ee6a5ea8a4
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sun May 2 14:17:23 2021 +0200

    nvptx: Fix up nvptx build against latest libstdc++ [PR100375]
    
    The r12-220-gd96db15967e78d7cecea3b1cf3169ceb924678ac change
    deprecated some non-standard std::pair constructors and that apparently
    broke nvptx.c build, where pseudo_node_t is std::pair<struct basic_block_def *, int>
    and so nullptr (or NULL) needs to be used for the first argument of the
    ctors instead of 0.
    
    2021-05-02  Jakub Jelinek  <jakub@redhat.com>
    
            PR target/100375
            * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use NULL instead of 0
            as first argument of pseudo_node_t constructors.
    
    (cherry picked from commit 7911a905276781c20f704f5a91b5125e0184d072)

Diff:
---
 gcc/config/nvptx/nvptx.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 07ff1df4bb8..011551852ab 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -3415,9 +3415,9 @@ nvptx_sese_pseudo (basic_block me, bb_sese *sese, int depth, int dir,
   edge e;
   edge_iterator (ei);
   int hi_back = depth;
-  pseudo_node_t node_back (0, depth);
+  pseudo_node_t node_back (NULL, depth);
   int hi_child = depth;
-  pseudo_node_t node_child (0, depth);
+  pseudo_node_t node_child (NULL, depth);
   basic_block child = NULL;
   unsigned num_children = 0;
   int usd = -dir * sese->dir;
@@ -3484,7 +3484,7 @@ nvptx_sese_pseudo (basic_block me, bb_sese *sese, int depth, int dir,
       else
 	{ /* Fallen off graph, backlink to entry node.  */
 	  hi_back = 0;
-	  node_back = pseudo_node_t (0, 0);
+	  node_back = pseudo_node_t (NULL, 0);
 	}
     }
 
@@ -3505,7 +3505,7 @@ nvptx_sese_pseudo (basic_block me, bb_sese *sese, int depth, int dir,
       else
 	{
 	  /* back edge to entry node */
-	  sese->push (pseudo_node_t (0, 0));
+	  sese->push (pseudo_node_t (NULL, 0));
 	}
     }
   
@@ -3514,7 +3514,7 @@ nvptx_sese_pseudo (basic_block me, bb_sese *sese, int depth, int dir,
   if (!sese->brackets.length () || !edges || !edges->length ())
     {
       hi_back = 0;
-      node_back = pseudo_node_t (0, 0);
+      node_back = pseudo_node_t (NULL, 0);
       sese->push (node_back);
     }


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

only message in thread, other threads:[~2021-05-14 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 14:56 [gcc(refs/vendors/redhat/heads/gcc-8-branch)] nvptx: Fix up nvptx build against latest libstdc++ [PR100375] Jakub Jelinek

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