comparison libgcc/generic-morestack-thread.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 561a7518be6b
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Thread library support for -fsplit-stack. */ 1 /* Thread library support for -fsplit-stack. */
2 /* Copyright (C) 2009, 2010 Free Software Foundation, Inc. 2 /* Copyright (C) 2009-2017 Free Software Foundation, Inc.
3 Contributed by Ian Lance Taylor <iant@google.com>. 3 Contributed by Ian Lance Taylor <iant@google.com>.
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it under 7 GCC is free software; you can redistribute it and/or modify it under
25 25
26 #include "tconfig.h" 26 #include "tconfig.h"
27 #include "tsystem.h" 27 #include "tsystem.h"
28 #include "coretypes.h" 28 #include "coretypes.h"
29 #include "tm.h" 29 #include "tm.h"
30 #include "libgcc_tm.h"
30 31
31 /* If inhibit_libc is defined, we can not compile this file. The 32 /* If inhibit_libc is defined, we can not compile this file. The
32 effect is that people will not be able to use -fsplit-stack. That 33 effect is that people will not be able to use -fsplit-stack. That
33 is much better than failing the build particularly since people 34 is much better than failing the build particularly since people
34 will want to define inhibit_libc while building a compiler which 35 will want to define inhibit_libc while building a compiler which
35 can build glibc. */ 36 can build glibc. */
36 37
37 #ifndef inhibit_libc 38 #ifndef inhibit_libc
38 39
40 #include <errno.h>
39 #include <pthread.h> 41 #include <pthread.h>
40 42
41 #include "generic-morestack.h" 43 #include "generic-morestack.h"
42 44
43 /* We declare the pthread functions we need as weak, so that 45 /* We declare the pthread functions we need as weak, so that