From 57a884df51484cf26a86d39d10bf7ad8eb6835ed Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 18 Jan 2020 19:07:51 +0100 Subject: [PATCH] Fix nvptx-none build. --- gcc.spec | 2 ++ gcc10-coroutines.patch | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc10-coroutines.patch diff --git a/gcc.spec b/gcc.spec index 2d6aadd..59a6d95 100644 --- a/gcc.spec +++ b/gcc.spec @@ -256,6 +256,7 @@ Patch8: gcc10-foffload-default.patch Patch9: gcc10-Wno-format-security.patch Patch10: gcc10-rh1574936.patch Patch11: gcc10-d-shared-libphobos.patch +Patch12: gcc10-coroutines.patch # On ARM EABI systems, we do want -gnueabi to be part of the # target triple. @@ -767,6 +768,7 @@ to NVidia PTX capable devices if available. %patch10 -p0 -b .rh1574936~ %endif %patch11 -p0 -b .d-shared-libphobos~ +%patch12 -p0 -b .coroutines~ echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE diff --git a/gcc10-coroutines.patch b/gcc10-coroutines.patch new file mode 100644 index 0000000..87d3db1 --- /dev/null +++ b/gcc10-coroutines.patch @@ -0,0 +1,16 @@ +2020-01-18 Jakub Jelinek + + * coroutines.cc (get_fn_local_identifier): Fix NO_DOT_IN_LABEL + but non-NO_DOLLAR_IN_LABEL case build. + +--- gcc/cp/coroutines.cc.jj 2020-01-18 13:47:09.318360691 +0100 ++++ gcc/cp/coroutines.cc 2020-01-18 19:05:48.349119608 +0100 +@@ -2252,7 +2252,7 @@ get_fn_local_identifier (tree orig, cons + sep = "."; + #else + #ifndef NO_DOLLAR_IN_LABEL +- sep = "$" ++ sep = "$"; + #else + sep = "_"; + pfx = "__";