diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2000-11-20 04:41:45 +0000 | 
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2000-11-20 04:41:45 +0000 | 
| commit | 0d497cf6e989f7498cf5036a29fe7003a89abf83 (patch) | |
| tree | 48a3225dfba4179815fb512c8ba7492fa4c83fbc /crypto/openssl/bugs/ultrixcc.c | |
| parent | 94bb9d581468116c659950d31288ce30f661f3d4 (diff) | |
Diffstat (limited to 'crypto/openssl/bugs/ultrixcc.c')
| -rw-r--r-- | crypto/openssl/bugs/ultrixcc.c | 45 | 
1 files changed, 0 insertions, 45 deletions
| diff --git a/crypto/openssl/bugs/ultrixcc.c b/crypto/openssl/bugs/ultrixcc.c deleted file mode 100644 index 7ba75b140f1f7..0000000000000 --- a/crypto/openssl/bugs/ultrixcc.c +++ /dev/null @@ -1,45 +0,0 @@ -#include <stdio.h> - -/* This is a cc optimiser bug for ultrix 4.3, mips CPU. - * What happens is that the compiler, due to the (a)&7, - * does - * i=a&7; - * i--; - * i*=4; - * Then uses i as the offset into a jump table. - * The problem is that a value of 0 generates an offset of - * 0xfffffffc. - */ - -main() -	{ -	f(5); -	f(0); -	} - -int f(a) -int a; -	{ -	switch(a&7) -		{ -	case 7: -		printf("7\n"); -	case 6: -		printf("6\n"); -	case 5: -		printf("5\n"); -	case 4: -		printf("4\n"); -	case 3: -		printf("3\n"); -	case 2: -		printf("2\n"); -	case 1: -		printf("1\n"); -#ifdef FIX_BUG -	case 0: -		; -#endif -		} -	}	 - | 
