mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ef215077bc
commit
5cbc3e15d8
2 changed files with 16 additions and 1 deletions
11
sparc.c
11
sparc.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue