comparison gcc/config/pa/pa-linux.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Definitions for PA_RISC with ELF format 1 /* Definitions for PA_RISC with ELF format
2 Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2 Copyright (C) 1999-2017 Free Software Foundation, Inc.
3 2011
4 Free Software Foundation, Inc.
5 3
6 This file is part of GCC. 4 This file is part of GCC.
7 5
8 GCC is free software; you can redistribute it and/or modify 6 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
22 20
23 #undef TARGET_OS_CPP_BUILTINS 21 #undef TARGET_OS_CPP_BUILTINS
24 #define TARGET_OS_CPP_BUILTINS() \ 22 #define TARGET_OS_CPP_BUILTINS() \
25 do \ 23 do \
26 { \ 24 { \
27 LINUX_TARGET_OS_CPP_BUILTINS(); \ 25 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
28 builtin_assert ("machine=bigendian"); \ 26 builtin_assert ("machine=bigendian"); \
29 } \ 27 } \
30 while (0) 28 while (0)
31 29
32 #undef CPP_SPEC 30 #undef CPP_SPEC
33 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" 31 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
34 32
35 #undef ASM_SPEC 33 #undef ASM_SPEC
36 #define ASM_SPEC \ 34 #define ASM_SPEC \
37 "" 35 ""
38 36
45 #define LINK_SPEC "\ 43 #define LINK_SPEC "\
46 %{shared:-shared} \ 44 %{shared:-shared} \
47 %{!shared: \ 45 %{!shared: \
48 %{!static: \ 46 %{!static: \
49 %{rdynamic:-export-dynamic} \ 47 %{rdynamic:-export-dynamic} \
50 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ 48 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
51 %{static:-static}}" 49 %{static:-static}}"
52 50
53 /* glibc's profiling functions don't need gcc to allocate counters. */ 51 /* glibc's profiling functions don't need gcc to allocate counters. */
54 #define NO_DEFERRED_PROFILE_COUNTERS 1 52 #define NO_DEFERRED_PROFILE_COUNTERS 1
55 53
78 ones in pa.h and note the lack of dollar signs in these. FIXME: 76 ones in pa.h and note the lack of dollar signs in these. FIXME:
79 shouldn't we fix pa.h to use ASM_GENERATE_INTERNAL_LABEL instead? */ 77 shouldn't we fix pa.h to use ASM_GENERATE_INTERNAL_LABEL instead? */
80 78
81 #undef ASM_OUTPUT_ADDR_VEC_ELT 79 #undef ASM_OUTPUT_ADDR_VEC_ELT
82 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \ 80 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
83 if (TARGET_BIG_SWITCH) \ 81 fprintf (FILE, "\t.word .L%d\n", VALUE)
84 fprintf (FILE, "\t.word .L%d\n", VALUE); \
85 else \
86 fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
87 82
88 #undef ASM_OUTPUT_ADDR_DIFF_ELT 83 #undef ASM_OUTPUT_ADDR_DIFF_ELT
89 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \ 84 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
90 if (TARGET_BIG_SWITCH) \ 85 fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL)
91 fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL); \
92 else \
93 fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
94 86
95 /* Use the default. */ 87 /* Use the default. */
96 #undef ASM_OUTPUT_LABEL 88 #undef ASM_OUTPUT_LABEL
97 89
98 /* NOTE: (*targetm.asm_out.internal_label)() is defined for us by elfos.h, and 90 /* NOTE: (*targetm.asm_out.internal_label)() is defined for us by elfos.h, and
126 #undef ASM_OUTPUT_EXTERNAL_LIBCALL 118 #undef ASM_OUTPUT_EXTERNAL_LIBCALL
127 #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ 119 #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
128 do \ 120 do \
129 { \ 121 { \
130 if (!FUNCTION_NAME_P (XSTR (FUN, 0))) \ 122 if (!FUNCTION_NAME_P (XSTR (FUN, 0))) \
131 hppa_encode_label (FUN); \ 123 pa_encode_label (FUN); \
132 (*targetm.asm_out.globalize_label) (FILE, XSTR (FUN, 0)); \ 124 (*targetm.asm_out.globalize_label) (FILE, XSTR (FUN, 0)); \
133 } \ 125 } \
134 while (0) 126 while (0)
135 127
136 /* Linux always uses gas. */
137 #undef TARGET_GAS 128 #undef TARGET_GAS
138 #define TARGET_GAS 1 129 #define TARGET_GAS 1
130
131 #undef TARGET_SYNC_LIBCALL
132 #define TARGET_SYNC_LIBCALL 1
133
134 /* The SYNC operations are implemented as library functions, not
135 INSN patterns. As a result, the HAVE defines for the patterns are
136 not defined. We need to define them to generate the corresponding
137 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* and __GCC_ATOMIC_*_LOCK_FREE
138 defines. */
139
140 #define HAVE_sync_compare_and_swapqi 1
141 #define HAVE_sync_compare_and_swaphi 1
142 #define HAVE_sync_compare_and_swapsi 1
143 #define HAVE_sync_compare_and_swapdi 1
144
145 #undef NEED_INDICATE_EXEC_STACK
146 #define NEED_INDICATE_EXEC_STACK 1