]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Change dfs function return type to support gcc 4.8
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 26 Mar 2024 15:32:31 +0000 (16:32 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 14:52:28 +0000 (16:52 +0200)
commit957b4ff94ed91490f168cfabc5ee73cc6cd2191b
tree521b3f7c339999fef66c600f9bd210ac713d8be9
parentb8ab88d12dee281f25634d793387608e6eab5f68
gccrs: Change dfs function return type to support gcc 4.8

GCC 4.8 does not handle pair with references correctly. We need to use a
properly typed struct instead.

gcc/rust/ChangeLog:

* resolve/rust-forever-stack.h: Change dfs function prototype and
declare dfs return type structure.
* resolve/rust-forever-stack.hxx: Adapt dfs function to the new return
type.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/resolve/rust-forever-stack.h
gcc/rust/resolve/rust-forever-stack.hxx