diff options
author | bde <bde@FreeBSD.org> | 1997-07-01 00:08:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-07-01 00:08:34 +0000 |
commit | 7250af086e13f0dd103c806c49f7d7d7c6d310bb (patch) | |
tree | 74d85470ed471f0b88479b3b14be35b44aa40ba0 /sys/gnu/i386 | |
parent | 0f00fbdf2b25a1170f2bf4cc84c6627518b12d77 (diff) | |
download | FreeBSD-src-7250af086e13f0dd103c806c49f7d7d7c6d310bb.zip FreeBSD-src-7250af086e13f0dd103c806c49f7d7d7c6d310bb.tar.gz |
Don't depend on gcc's feature of permitting returning void expressions
in functions returning void.
Diffstat (limited to 'sys/gnu/i386')
-rw-r--r-- | sys/gnu/i386/fpemul/load_store.c | 5 | ||||
-rw-r--r-- | sys/gnu/i386/fpemul/reg_compare.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/gnu/i386/fpemul/load_store.c b/sys/gnu/i386/fpemul/load_store.c index 3573df0..76bcfd9 100644 --- a/sys/gnu/i386/fpemul/load_store.c +++ b/sys/gnu/i386/fpemul/load_store.c @@ -57,7 +57,7 @@ * W. Metzenthen June 1994. * * - * $Id: load_store.c,v 1.8 1997/02/22 09:29:10 peter Exp $ + * $Id: load_store.c,v 1.9 1997/06/14 15:11:04 bde Exp $ * */ @@ -128,7 +128,8 @@ load_store_instr(char type) } break; case _null_: - return Un_impl(); + Un_impl(); + return; #ifdef PARANOID default: return EXCEPTION(EX_INTERNAL); diff --git a/sys/gnu/i386/fpemul/reg_compare.c b/sys/gnu/i386/fpemul/reg_compare.c index 5737cf5..abc0d22 100644 --- a/sys/gnu/i386/fpemul/reg_compare.c +++ b/sys/gnu/i386/fpemul/reg_compare.c @@ -56,7 +56,7 @@ * W. Metzenthen June 1994. * * - * $Id: reg_compare.c,v 1.8 1997/02/22 09:29:21 peter Exp $ + * $Id: reg_compare.c,v 1.9 1997/06/14 15:11:05 bde Exp $ * */ @@ -340,8 +340,10 @@ void fcompp() { /* fcompp */ - if (FPU_rm != 1) - return Un_impl(); + if (FPU_rm != 1) { + Un_impl(); + return; + } if (compare_st_st(1)) { pop(); FPU_st0_ptr = &st(0); |