aboutsummaryrefslogtreecommitdiff
path: root/openssl/bugs/dggccbug.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2015-02-22 14:43:31 +0100
committermarha <marha@users.sourceforge.net>2015-02-22 14:43:31 +0100
commitc9aad1ae6227c434d480d1d3aa8eae3c3c910c18 (patch)
tree94b917df998c3d547e191b3b9c58bbffc616470e /openssl/bugs/dggccbug.c
parentf1c2db43dcf35d2cf4715390bd2391c28e42a8c2 (diff)
downloadvcxsrv-c9aad1ae6227c434d480d1d3aa8eae3c3c910c18.tar.gz
vcxsrv-c9aad1ae6227c434d480d1d3aa8eae3c3c910c18.tar.bz2
vcxsrv-c9aad1ae6227c434d480d1d3aa8eae3c3c910c18.zip
Upgraded to openssl-1.0.2
Diffstat (limited to 'openssl/bugs/dggccbug.c')
-rw-r--r--openssl/bugs/dggccbug.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/openssl/bugs/dggccbug.c b/openssl/bugs/dggccbug.c
index 30e07a60e..56f522288 100644
--- a/openssl/bugs/dggccbug.c
+++ b/openssl/bugs/dggccbug.c
@@ -4,17 +4,18 @@
#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. */
+/*
+ * 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
+/*-
+ * compare the out put from
* gcc dggccbug.c; ./a.out
* and
* gcc -O dggccbug.c; ./a.out
@@ -23,23 +24,22 @@
void inc(a)
int *a;
- {
- (*a)++;
- }
+{
+ (*a)++;
+}
main()
- {
- int p=0;
+{
+ int p = 0;
#ifdef FIXBUG
- int dummy;
+ int dummy;
#endif
- while (p<3)
- {
- fprintf(stderr,"%08X\n",p);
- inc(&p);
+ while (p < 3) {
+ fprintf(stderr, "%08X\n", p);
+ inc(&p);
#ifdef FIXBUG
- dummy+=p;
+ dummy += p;
#endif
- }
- }
+ }
+}