Message ID | 20180105065907.31467-1-sebastian.huber@embedded-brains.de |
---|---|
State | New |
Headers | show |
Series | [1/2] nios2: Enable Ada run-time build | expand |
On 01/04/2018 11:59 PM, Sebastian Huber wrote: > gcc/ > * config/nios2/nios2.h (nios2_section_threshold): Guard by not > USED_FOR_TARGET. So I'm not familiar with *why* the section bits need to be conditionalized at all. But there's certainly evidence that this is the way they're supposed to be handled for a long time (see 2005 changes to darwin.h). So, OK. Similarly for the epiphany changes. jeff
diff --git a/gcc/config/nios2/nios2.h b/gcc/config/nios2/nios2.h index 858d4a41cd7..f62b2ce3176 100644 --- a/gcc/config/nios2/nios2.h +++ b/gcc/config/nios2/nios2.h @@ -431,7 +431,7 @@ typedef struct nios2_args /* Output before 'small' uninitialized data. */ #define SBSS_SECTION_ASM_OP "\t.section\t.sbss" -#ifndef IN_LIBGCC2 +#ifndef USED_FOR_TARGET /* Default the definition of "small data" to 8 bytes. */ extern unsigned HOST_WIDE_INT nios2_section_threshold; #endif