Commit e3e86d56c46d37418f4e20645d51731666bf903f

Authored by bellard
1 parent 1df912cf

gcc3 compile fixes


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@282 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 2 deletions
tests/test-i386.c
1 1 #define _GNU_SOURCE
2 2 #include <stdlib.h>
3 3 #include <stdio.h>
  4 +#include <string.h>
4 5 #include <inttypes.h>
5 6 #include <math.h>
6 7 #include <signal.h>
... ... @@ -591,7 +592,7 @@ void test_fbcd(double a)
591 592 asm("fld1\n"\
592 593 prefix "fnstenv %1\n"\
593 594 prefix "fldenv %1\n"\
594   - : "=t" (res) : "m" (*(env)) : "st");\
  595 + : "=t" (res) : "m" (*(env)));\
595 596 printf("res=%f\n", res);\
596 597 printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
597 598 (env)->fpuc,\
... ... @@ -601,7 +602,7 @@ void test_fbcd(double a)
601 602 asm("fld1\n"\
602 603 prefix "fnsave %1\n"\
603 604 prefix "frstor %1\n"\
604   - : "=t" (res) : "m" (*(env)) : "st");\
  605 + : "=t" (res) : "m" (*(env)));\
605 606 printf("res=%f\n", res);\
606 607 printf("fpuc=%04x fpus=%04x fptag=%04x\n",\
607 608 (env)->fpuc,\
... ...