annobin/adapte-gcc.patch
cherry530 4cfe6b479a Adapted gcc
Signed-off-by: cherry530 <707078654@qq.com>
2024-05-20 19:49:53 +08:00

16 lines
543 B
Diff

diff --git a/plugin/annobin.cc b/plugin/annobin.cc
index ac34d5f..67a2837 100644
--- a/plugin/annobin.cc
+++ b/plugin/annobin.cc
@@ -638,7 +638,9 @@ compute_GOWall_options (void)
}
else
val = write_symbols;
-
+ /*Because commit https://gitee.com/src-openeuler/gcc/pulls/425 removes use_gnu_debug_info_extensions, we modify it by setting use_gnu_debug_info_extensions locally to false*/
+ bool use_gnu_debug_info_extensions;
+ use_gnu_debug_info_extensions = false;
if (use_gnu_debug_info_extensions)
val |= (1 << 3);