diff options
author | kan <kan@FreeBSD.org> | 2003-04-13 01:04:01 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-04-13 01:04:01 +0000 |
commit | bb8e727a8db88c8a22ae0c38f1f58ec5b0ea2092 (patch) | |
tree | ac2288285118eff3d52c287fa06220746d35593c /contrib/gcc | |
parent | 6da30a3fc5b26f37651eb4a8d2c8f433ac6fbffa (diff) | |
download | FreeBSD-src-bb8e727a8db88c8a22ae0c38f1f58ec5b0ea2092.zip FreeBSD-src-bb8e727a8db88c8a22ae0c38f1f58ec5b0ea2092.tar.gz |
Teach gcc how to put unitialized data into BSS on FreeBSD.
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/config/i386/freebsd.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h index ede36f7..028d432 100644 --- a/contrib/gcc/config/i386/freebsd.h +++ b/contrib/gcc/config/i386/freebsd.h @@ -215,6 +215,27 @@ Boston, MA 02111-1307, USA. */ } while (0) #endif +/* If defined, a C expression whose value is a string containing the + assembler operation to identify the following data as + uninitialized global data. If not defined, and neither + `ASM_OUTPUT_BSS' nor `ASM_OUTPUT_ALIGNED_BSS' are defined, + uninitialized global data will be output in the data section if + `-fno-common' is passed, otherwise `ASM_OUTPUT_COMMON' will be + used. */ +#undef BSS_SECTION_ASM_OP +#define BSS_SECTION_ASM_OP "\t.section\t.bss" + +/* Like `ASM_OUTPUT_BSS' except takes the required alignment as a + separate, explicit argument. If you define this macro, it is used + in place of `ASM_OUTPUT_BSS', and gives you more flexibility in + handling the required alignment of the variable. The alignment is + specified as the number of bits. + + Try to use function `asm_output_aligned_bss' defined in file + `varasm.c' when defining this macro. */ +#undef ASM_OUTPUT_ALIGNED_BSS +#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ + asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) /************************[ Debugger stuff ]*********************************/ |