我在哪里修复asm错误:'asm'未声明(在此函数中首次使用)编译gcc-7.2.0

时间:2017-10-09 19:28:08

标签: gcc

我一直在尝试安装gcc-7.2.0。我在ubuntu和centos 6.7上得到了同样的错误。我看到的帖子建议将CFLAGS从-std = c99更改为-std = gnu99。但我无法弄清楚我必须改变这个文件。从文件gcc_7_2_0_release / libgcc / config / i386 / sfp-exceptions.c的第55行开始,在几行上发生相同的错误。 错误是

gcc_7_2_0_release/libgcc/config/i386/sfp-exceptions.c: In function ‘__sfp_handle_exceptions’:
gcc_7_2_0_release/libgcc/config/i386/sfp-exceptions.c:55:7: error: ‘asm’ undeclared (first use in this function)
asm volatile ("fdiv\t{%y0, %0|%0, %y0}" : "+t" (f));

请帮助我们 gcc-v给出了以下长提取物:

 "Using built-in specs.
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) 

我不得不把它作为编辑,因为评论太长了

0 个答案:

没有答案
相关问题