diff options
author | Andrea Ornstein <andrea.ornstein@st.com> | 2010-02-28 19:35:49 +0000 |
---|---|---|
committer | Andrea Ornstein <andrea.ornstein@st.com> | 2010-02-28 19:35:49 +0000 |
commit | dd5252b901ccf3a3fed872b5dc0c66221af80fcc (patch) | |
tree | fb8ab90f122934f15972993e626ca8d4cc94d79f | |
parent | 79c2878baebf526808f123a1682c89318b94717a (diff) |
Do not emit #line directives in assembly files (not supported by as)
add defines __MONOLINKER or __DOTGNULINKER depending on binutils used (helpful when writing .S files)
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/st/cli-be@157126 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/config/cil32/cil32.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/cil32/cil32.h b/gcc/config/cil32/cil32.h index 6dc83314fe6..3322e8329c7 100644 --- a/gcc/config/cil32/cil32.h +++ b/gcc/config/cil32/cil32.h @@ -43,7 +43,7 @@ Erven Rohou <erven.rohou@inria.fr> #define TARGET_DECLARE_VARIABLE(STREAM,DECL) emit_cil_decl(STREAM,DECL) /* Node: Driver */ -#define CPP_SPEC "%{mthreads:-D_MTHREADS}" +#define CPP_SPEC "%{mthreads:-D_MTHREADS} %{,assembler-with-cpp:-P}" #if defined(MONO_BINUTILS) #define CC1_SPEC "-mgcc4net-linker" #define LIBGCC_SPEC "" @@ -70,6 +70,10 @@ Erven Rohou <erven.rohou@inria.fr> builtin_define_std ("__GNU_CIL__"); \ builtin_assert ("cpu=cil32"); \ builtin_assert ("machine=cil32"); \ + if (TARGET_GCC4NET_LINKER) \ + builtin_define_std ("__MONOLINKER"); \ + else if (TARGET_OPENSYSTEMC) \ + builtin_define_std ("__DOTGNULINKER"); \ } \ while(0) |