From dd5252b901ccf3a3fed872b5dc0c66221af80fcc Mon Sep 17 00:00:00 2001 From: Andrea Ornstein Date: Sun, 28 Feb 2010 19:35:49 +0000 Subject: 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 --- gcc/config/cil32/cil32.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #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 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) -- cgit v1.2.3