diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2004-03-17 12:11:09 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2004-03-17 12:11:09 +0000 |
| commit | e787e57d2fcf53c0141dcfdc5974bd8a706f0308 (patch) | |
| tree | 086fb6b3d3e003caef8aabe591caecaedc86210a /crypto/openssl/bugs/ultrixcc.c | |
| parent | 81ac585294418460a598ae2c6d3eeaf0d993b18a (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 7ba75b140f1f..000000000000 --- 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 - } - } - |
