diff options
author | camthesaxman <camthesaxman@users.noreply.github.com> | 2020-01-30 02:12:24 -0600 |
---|---|---|
committer | camthesaxman <camthesaxman@users.noreply.github.com> | 2020-01-30 02:12:24 -0600 |
commit | 3397016bff4dd62706f7d807a5196e79ae9c30b6 (patch) | |
tree | 98e90037403f29116f3ea6d0d8a1ba3623f4e968 /gcc_arm/testsuite/gcc.wendy/gnu18.c | |
parent | 4f87fae05b87cefd4f8fc0b2b18e639b0fad25fc (diff) |
delete test suite
Diffstat (limited to 'gcc_arm/testsuite/gcc.wendy/gnu18.c')
-rwxr-xr-x | gcc_arm/testsuite/gcc.wendy/gnu18.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gcc_arm/testsuite/gcc.wendy/gnu18.c b/gcc_arm/testsuite/gcc.wendy/gnu18.c deleted file mode 100755 index e66c4f6..0000000 --- a/gcc_arm/testsuite/gcc.wendy/gnu18.c +++ /dev/null @@ -1,46 +0,0 @@ -/* -Date: Sat, 5 Sep 87 00:34:13 PDT -From: gnu (John Gilmore) -To: rms -Subject: Stack adjustment bug in 'continue' -- gcc 1.10+ - -Compiling the following simplified program with or without -O produces -bad code. The 'continue' compiles to a jump to a label which PRECEDES -the stack adjust for the printf at the end of the loop. This makes the -stack pointer walk up each time around the loop. If you compile without --O, "foo" gets allocated on the stack and the debug printf fires. -Compiled with -O, it coredumps before printing. Compiled on a working -compiler, it loops forever. - -I have installed the bugfix for while loops posted to bug-gcc; it fails -with or without the bugfix. -*/ - -int tty; - -iscmd() { - static int counter; - - if (counter++ < 10000) return 0; - printf("Test passed\n"); - exit(0); -} - -void -main() -{ - int foo = 0; - - for ( ;; ) { - if (foo != 0) printf("***BUG*** foo=%x\n", foo); - if (!tty) { - if (!iscmd ()) - continue; - foo = 1; - } - - printf("**BUG** Past iscmd\n"); - } - - return; -} |