aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-10-13 16:28:19 -0700
committerDan Albert <danalbert@google.com>2015-10-13 16:28:19 -0700
commita8c075f72b231c37823661ba0d7d082a21cd39d9 (patch)
tree395aa3b848d56037292e50466643453485073018 /gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c
parent5aff2e0142aca13849b4e51de503e71d5010efa6 (diff)
downloadtoolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.gz
toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.tar.bz2
toolchain_gcc-a8c075f72b231c37823661ba0d7d082a21cd39d9.zip
Remove gcc-4.8.
Change-Id: Iee9c6985c613f58c82e33a91722d371579eb290f
Diffstat (limited to 'gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c')
-rw-r--r--gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c b/gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c
deleted file mode 100644
index 2780ffd72..000000000
--- a/gcc-4.8/libmudflap/testsuite/libmudflap.c/pass51-frag.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Test object-spanning accesses. This is most conveniently done with
- mmap, thus the config.h specificity here. */
-#include "../config.h"
-
-#include <unistd.h>
-#include <string.h>
-#ifdef HAVE_SYS_MMAN_H
-#include <sys/mman.h>
-#endif
-
-int main ()
-{
-#ifndef MAP_ANONYMOUS
-#define MAP_ANONYMOUS MAP_ANON
-#endif
-#ifndef MAP_FAILED
-#define MAP_FAILED ((void *)-1)
-#endif
-#ifdef HAVE_MMAP
- void *p;
- unsigned pg = getpagesize ();
- int rc;
-
- p = mmap (NULL, 4 * pg, PROT_READ|PROT_WRITE,
- MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
- if (p == MAP_FAILED)
- return 1;
-
- memset (p, 0, 4*pg);
- rc = munmap (p, pg);
- if (rc < 0) return 1;
- memset (p+pg, 0, 3*pg);
- rc = munmap (p+pg, pg);
- if (rc < 0) return 1;
- memset (p+2*pg, 0, 2*pg);
- rc = munmap (p+2*pg, pg);
- if (rc < 0) return 1;
- memset (p+3*pg, 0, pg);
- rc = munmap (p+3*pg, pg);
- if (rc < 0) return 1;
-#endif
-
- return 0;
-}