]> gcc.gnu.org Git - gcc.git/commit
nvptx: Fix up nvptx build against latest libstdc++ [PR100375]
authorJakub Jelinek <jakub@redhat.com>
Sun, 2 May 2021 12:17:23 +0000 (14:17 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 4 May 2021 11:56:20 +0000 (13:56 +0200)
commitda9c085ddbfe61e5954c8ec4e996240fa3a994c0
tree6bc721874964cb2dbccab6e1b6379c273fbf4a70
parenta7b9706482fbf241d57c090554cc9f0b19b57fa6
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 nullptr instead of 0
as first argument of pseudo_node_t constructors.

(cherry picked from commit 7911a905276781c20f704f5a91b5125e0184d072)
gcc/config/nvptx/nvptx.c
This page took 0.062089 seconds and 5 git commands to generate.