diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sparc.c | 11 |
2 files changed, 16 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Sat Apr 27 19:04:55 2013 Tanaka Akira <[email protected]> + + * sparc.c: Use __asm__ instead of asm for gcc. + gcc doesn't provide asm keyword if -ansi option is given. + http://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html + Sat Apr 27 17:22:50 2013 Tanaka Akira <[email protected]> * ext/socket/extconf.rb: Redundant test removed. @@ -12,7 +12,16 @@ void rb_sparc_flush_register_windows(void) { - asm +/* + * gcc doesn't provide "asm" keyword if -ansi and the various -std options + * are given. + * http://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html + */ +#ifndef __GNUC__ +#define __asm__ asm +#endif + + __asm__ #ifdef __GNUC__ __volatile__ #endif |