* header.c (WriteServerHeader): Add gnu_inline attribute to output.
---

Hi,

Building GDB for Hurd with GCC5 fails due to some extern inline
functions output from mig.  I tried fixing it in mig (as opposed to
changing CFLAGS for GDB) so any other project using mig won't need to
worry about this.

Does anyone foresee problems with this method?

Thanks.

David


 header.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/header.c b/header.c
index 23e5686..90bb1fe 100644
--- a/header.c
+++ b/header.c
@@ -178,7 +178,8 @@ WriteServerHeader(FILE *file, const statement_t *stats)
      * Include the x_server_routine function so it can be inlined.
      */
     fprintf(file, "extern mig_routine_t %s_routines[];\n", ServerDemux);
-    WriteSubsystemServerRoutine(file, "extern inline");
+    WriteSubsystemServerRoutine(file,
+                               "extern inline __attribute__ ((gnu_inline))");
 
     WriteEpilog(file, protect);
 }
-- 
2.1.0


Reply via email to