aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libmudflap/testsuite/libmudflap.cth
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-06-17 11:09:54 -0700
committerDan Albert <danalbert@google.com>2015-06-17 14:15:22 -0700
commitf378ebf14df0952eae870c9865bab8326aa8f137 (patch)
tree31794503eb2a8c64ea5f313b93100f1163afcffb /gcc-4.7/libmudflap/testsuite/libmudflap.cth
parent2c58169824949d3a597d9fa81931e001ef9b1bd0 (diff)
downloadtoolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.gz
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.bz2
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.zip
Delete old versions of GCC.
Change-Id: I710f125d905290e1024cbd67f48299861790c66c
Diffstat (limited to 'gcc-4.7/libmudflap/testsuite/libmudflap.cth')
-rw-r--r--gcc-4.7/libmudflap/testsuite/libmudflap.cth/cthfrags.exp30
-rw-r--r--gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass37-frag.c58
-rw-r--r--gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass39-frag.c57
-rw-r--r--gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass40-frag.c59
-rw-r--r--gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass59-frag.c39
5 files changed, 0 insertions, 243 deletions
diff --git a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/cthfrags.exp b/gcc-4.7/libmudflap/testsuite/libmudflap.cth/cthfrags.exp
deleted file mode 100644
index a025b0380..000000000
--- a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/cthfrags.exp
+++ /dev/null
@@ -1,30 +0,0 @@
-global MUDFLAP_FLAGS
-set MUDFLAP_FLAGS [list {} {-static -DSTATIC} {-O2} {-O3}]
-
-libmudflap-init c
-
-dg-init
-
-global srcdir
-foreach flags $MUDFLAP_FLAGS {
- foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.cth/*.c]] {
- set bsrc [file tail $srcfile]
- setenv MUDFLAP_OPTIONS "-viol-segv"
- if {$libmudflapth} then {
- if [check_effective_target_gld] {
- # --noinhibit-exec works around a ld problem that causes
- # "Dwarf Error: Invalid or unhandled FORM value: 14"
- # to fail builds unnecessarily.
- set noie_option " -Wl,--noinhibit-exec"
- } else {
- set noie_option ""
- }
- dg-runtest $srcfile $flags "-fmudflapth -lmudflapth -lpthread $noie_option"
- } else {
- if {$flags != ""} {set f " ($flags)"} {set f ""}
- untested "libmudflap.cth/$bsrc$f"
- }
- }
-}
-
-dg-finish
diff --git a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass37-frag.c b/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass37-frag.c
deleted file mode 100644
index 877803c1e..000000000
--- a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass37-frag.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-#include <sched.h>
-
-static void *
-func (void *p)
-{
- int *counter = (int *) p;
- unsigned i;
-
- for (i=0; i<100; i++)
- {
- (*counter) ++;
- {
- int array[17];
- unsigned x = i % (sizeof(array)/sizeof(array[0]));
- /* VRP could prove that x is within [0,16], but until then, the
- following access will ensure that array[] is registered to
- libmudflap. */
- array[x] = i;
- }
- sched_yield (); /* sleep (1); */
- }
-
- return (NULL);
-}
-
-
-int main ()
-{
- int rc;
- unsigned i;
- enum foo { NT=10 };
- pthread_t threads[NT];
- int counts[NT];
-
-
- for (i=0; i<NT; i++)
- {
- counts[i] = 0;
- rc = pthread_create (& threads[i], NULL, func, (void *) & counts[i]);
- if (rc) abort();
- }
-
- for (i=0; i<NT; i++)
- {
- rc = pthread_join (threads[i], NULL);
- if (rc) abort();
- printf ("%d%s", counts[i], (i==NT-1) ? "\n" : " ");
- }
-
- return 0;
-}
-
-/* { dg-output "100 100 100 100 100 100 100 100 100 100" } */
-/* { dg-repetitions 20 } */
-/* { dg-timeout 10 } */
diff --git a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass39-frag.c b/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass39-frag.c
deleted file mode 100644
index cd3eb5abd..000000000
--- a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass39-frag.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-#include <sched.h>
-#include <assert.h>
-
-static void *
-func (void *p)
-{
- int *counter = (int *) p;
- unsigned i;
- enum { numarrays = 100, numels = 17 };
- char *arrays [numarrays];
-
- for (i=0; i<numarrays; i++)
- {
- (*counter) ++;
- unsigned x = i % numels;
- arrays[i] = calloc (numels, sizeof(arrays[i][0]));
- assert (arrays[i] != NULL);
- arrays[i][x] = i;
- free (arrays[i]);
- sched_yield (); /* sleep (1); */
- }
-
- return (NULL);
-}
-
-
-int main ()
-{
- int rc;
- unsigned i;
- enum foo { NT=10 };
- pthread_t threads[NT];
- int counts[NT];
-
-
- for (i=0; i<NT; i++)
- {
- counts[i] = 0;
- rc = pthread_create (& threads[i], NULL, func, (void *) & counts[i]);
- if (rc) abort();
- }
-
- for (i=0; i<NT; i++)
- {
- rc = pthread_join (threads[i], NULL);
- if (rc) abort();
- printf ("%d%s", counts[i], (i==NT-1) ? "\n" : " ");
- }
-
- return 0;
-}
-/* { dg-output "100 100 100 100 100 100 100 100 100 100" } */
-/* { dg-repetitions 20 } */
-/* { dg-timeout 10 } */
diff --git a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass40-frag.c b/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass40-frag.c
deleted file mode 100644
index 007cb1607..000000000
--- a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass40-frag.c
+++ /dev/null
@@ -1,59 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <pthread.h>
-
-static void *
-func (void *p)
-{
- return (NULL);
-}
-
-static void
-test (void)
-{
- int rc;
- pthread_attr_t my_pthread_attr;
- pthread_t h;
- long i;
-
- rc = pthread_attr_init (&my_pthread_attr);
-
- for (i = 1; i <= 10000; ++i) {
- if (i%100 == 0) fprintf (stderr, "%i ", i);
- if (i%1000 == 0) fprintf (stderr, "\n");
-#ifndef STATIC
- /* Some glibc versions don't like static multithreaded programs doing this. */
- if (i==5000) __mf_set_options ("-thread-stack=192");
-#endif
- rc = pthread_create (&h, &my_pthread_attr,
- func, NULL);
- if (rc)
- break;
-
- rc = pthread_join (h, NULL);
- if (rc)
- break;
- }
-
- rc = pthread_attr_destroy (&my_pthread_attr);
-}
-
-int main ()
-{
- test ();
-
- return (0);
-}
-
-/* { dg-timeout 30 } */
-/* { dg-output "100 200 300 400 500 600 700 800 900 1000 \n" } */
-/* { dg-output "1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 \n" } */
-/* { dg-output "2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 \n" } */
-/* { dg-output "3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 \n" } */
-/* { dg-output "4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 \n" } */
-/* { dg-output "5100 5200 5300 5400 5500 5600 5700 5800 5900 6000 \n" } */
-/* { dg-output "6100 6200 6300 6400 6500 6600 6700 6800 6900 7000 \n" } */
-/* { dg-output "7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 \n" } */
-/* { dg-output "8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 \n" } */
-/* { dg-output "9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 \n" } */
-
diff --git a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass59-frag.c b/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass59-frag.c
deleted file mode 100644
index 490130677..000000000
--- a/gcc-4.7/libmudflap/testsuite/libmudflap.cth/pass59-frag.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-#include <pthread.h>
-
-/* PR 28578 */
-
-void* test_thread(void* arg)
-{
- printf("Hello from thread!\n");
- pthread_exit(NULL);
- return 0;
-}
-
-int main()
-{
- pthread_t thread;
- void *arg = NULL;
- pthread_create(&thread, NULL, test_thread, arg);
- pthread_join(thread, NULL);
- pthread_exit(NULL);
- return 0;
-}
-
-/* { dg-output "Hello from thread!\n" } */
-
-#if 0
-
-/* Even this test case replicates the problem. However, when built in
- static mode, it blows up during __mf_init (?!?!?!) with a
- pthread_mutex_lock deadlock error. */
-
-#include <stdio.h>
-#include <pthread.h>
-
-int main ()
-{
- pthread_exit(NULL);
- return 0;
-}
-#endif