tags 777881 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added "extern" to the callable
copy of the inline functions to ensure externally visible functions are
emitted, please see section "Different semantics for inline functions"
at https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Greg Pearson
Linux for HP Helion

--- a/src/cpu.c	2015-07-07 17:13:40.761787869 +0000
+++ b/src/cpu.c	2015-07-07 17:19:41.433800469 +0000
@@ -2826,7 +2826,7 @@
   }
 }
 
-__inline__ void cpu_run(void) {
+extern __inline__ void cpu_run(void) {
   static Uint32 divid_cycle;
   int v=0;
   Uint8 a;
diff -urN a/src/vram.c b/src/vram.c
--- a/src/vram.c	2015-07-07 17:15:13.713791116 +0000
+++ b/src/vram.c	2015-07-07 17:19:36.793800306 +0000
@@ -242,7 +242,7 @@
   conf.fs^=1;
 }
 
-__inline__ Uint8 get_nb_spr(void)
+extern __inline__ Uint8 get_nb_spr(void)
 {
   Uint8 *sp=oam_space;
   Sint16 no_tile,x,y,att;

Reply via email to