--- scorep-6.0/src/adapters/compiler/gcc-plugin/scorep_plugin_pass_instrument.inc.c~ 2019-07-31 07:06:13.240696727 +0000
+++ scorep-6.0/src/adapters/compiler/gcc-plugin/scorep_plugin_pass_instrument.inc.c 2020-01-25 10:54:10.383218474 +0000
@@ -83,7 +83,7 @@
return "in system header";
}
- if ( node->global.inlined_to )
+ if ( cgraph_inlined_to( node ) )
{
return "was inlined";
}
--- scorep-6.0/src/adapters/compiler/gcc-plugin/scorep_plugin_gcc_version_compatibility.h~ 2019-07-31 07:06:13.252696749 +0000
+++ scorep-6.0/src/adapters/compiler/gcc-plugin/scorep_plugin_gcc_version_compatibility.h 2020-01-25 11:14:52.226287981 +0000
@@ -43,3 +43,9 @@
#if SCOREP_GCC_PLUGIN_TARGET_VERSION < 7000
#define SET_DECL_ALIGN( decl, x ) DECL_ALIGN( decl ) = ( x )
#endif
+
+#if SCOREP_GCC_PLUGIN_TARGET_VERSION > 10000
+ #define cgraph_inlined_to( node ) ( node )->inlined_to
+#else
+ #define cgraph_inlined_to( node ) ( node )->global.inlined_to
+#endif