--- gcc/config/tm-sun386i.h 2018/04/24 16:53:28 1.1 +++ gcc/config/tm-sun386i.h 2018/04/24 17:00:40 1.1.1.4 @@ -37,6 +37,12 @@ the Free Software Foundation, 675 Mass A %{sun386:}" /* That last item is just to prevent a spurious error. */ +/* It is hard to debug with shared libraries, + so don't use them if going to debug. */ + +#undef LINK_SPEC +#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} %{-Bstatic}" + /* Extra switches to give the assembler. */ #define ASM_SPEC "-i386" @@ -65,6 +71,9 @@ the Free Software Foundation, 675 Mass A #define TARGET_MEM_FUNCTIONS +/* Force structure alignment to the type used for a bitfield. */ + +#define PCC_BITFIELD_TYPE_MATTERS 1 /* Define how to find the value returned by a function. VALTYPE is the data type of the value (as a tree). @@ -89,3 +98,8 @@ the Free Software Foundation, 675 Mass A Otherwise the assembler or the linker screws up. */ #define DEBUG_SYMS_TEXT + +/* This NOP insn makes profiling not fail. */ + +#define ASM_IDENTIFY_GCC(FILE) \ +fprintf (FILE, (profile_flag ? "gcc_compiled.:\n\tnop\n" : "gcc_compiled.:\n"))