diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2002-08-05 16:25:18 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2002-08-05 16:25:18 +0000 |
commit | b511ae2f1f196288ae21fd8ef86946e50dacbbcd (patch) | |
tree | c77ed69a9d89e7b50ec49f9e17f03e1daaf0c328 /crypto/openssl/bugs/dggccbug.c | |
parent | b1357e1cec95464ca388f5ea85e0b24cfac69efc (diff) |
This commit was manufactured by cvs2svn to create tagvendor/openssl/0.9.6e-asn1-patch
'openssl-vendor-crypto-v0_9_6e_asn1_patch'.
Notes
Notes:
svn path=/vendor-crypto/openssl/dist/; revision=101386
svn path=/vendor-crypto/openssl/0.9.6e-asn1-patch/; revision=101388; tag=vendor/openssl/0.9.6e-asn1-patch
Diffstat (limited to 'crypto/openssl/bugs/dggccbug.c')
-rw-r--r-- | crypto/openssl/bugs/dggccbug.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/crypto/openssl/bugs/dggccbug.c b/crypto/openssl/bugs/dggccbug.c deleted file mode 100644 index 30e07a60ea4a..000000000000 --- a/crypto/openssl/bugs/dggccbug.c +++ /dev/null @@ -1,45 +0,0 @@ -/* NOCW */ -/* dggccbug.c */ -/* bug found by Eric Young (eay@cryptsoft.com) - May 1995 */ - -#include <stdio.h> - -/* There is a bug in - * gcc version 2.5.8 (88open OCS/BCS, DG-2.5.8.3, Oct 14 1994) - * as shipped with DGUX 5.4R3.10 that can be bypassed by defining - * DG_GCC_BUG in my code. - * The bug manifests itself by the vaule of a pointer that is - * used only by reference, not having it's value change when it is used - * to check for exiting the loop. Probably caused by there being 2 - * copies of the valiable, one in a register and one being an address - * that is passed. */ - -/* compare the out put from - * gcc dggccbug.c; ./a.out - * and - * gcc -O dggccbug.c; ./a.out - * compile with -DFIXBUG to remove the bug when optimising. - */ - -void inc(a) -int *a; - { - (*a)++; - } - -main() - { - int p=0; -#ifdef FIXBUG - int dummy; -#endif - - while (p<3) - { - fprintf(stderr,"%08X\n",p); - inc(&p); -#ifdef FIXBUG - dummy+=p; -#endif - } - } |