[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH mig] Explicitly use gnu_inline semantics for x_server_routine fun

From: David Michael
Subject: [PATCH mig] Explicitly use gnu_inline semantics for x_server_routine functions
Date: Tue, 05 May 2015 16:33:45 -0400

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


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?



 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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]