From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2050) id AEC55386EC2F; Thu, 17 Sep 2020 07:02:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEC55386EC2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600326175; bh=ffZ/DKHmeE7EemKWO4slp4Y//cJnKQH59NoZy24MeLY=; h=From:To:Subject:Date:From; b=U341eH6JPmt8TSVqJxzk0dg7oX687WR2ec4Kx2Aw7HXoS4EdkW3Ybg/SxPM3mcoEP 2hqtGmwOYbVXKxioVBJhI8dwFqIjK/wTs0QjPs8MOBgOAQ2/lQ2BbqbIkyliQwyRl9 7hiBInENKsJEHJwswtroa4HgEc2uqfu66QYzf6nM= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: qu To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-3252] C-SKY: Add -msim option X-Act-Checkin: gcc X-Git-Author: Jojo R X-Git-Refname: refs/heads/master X-Git-Oldrev: f723794355e9b87645f44fdf3fa65324ca0f3fd1 X-Git-Newrev: 6ee9c216532c49e162c80fbbdc011afb184e8973 Message-Id: <20200917070255.AEC55386EC2F@sourceware.org> Date: Thu, 17 Sep 2020 07:02:55 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 07:02:55 -0000 https://gcc.gnu.org/g:6ee9c216532c49e162c80fbbdc011afb184e8973 commit r11-3252-g6ee9c216532c49e162c80fbbdc011afb184e8973 Author: Jojo R Date: Wed Sep 16 19:47:41 2020 +0800 C-SKY: Add -msim option gcc/ChangeLog: * config/csky/csky.opt (msim): New. * doc/invoke.texi (C-SKY Options): Document -msim. * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime. Diff: --- gcc/config/csky/csky-elf.h | 10 ++++++++-- gcc/config/csky/csky.opt | 4 ++++ gcc/doc/invoke.texi | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gcc/config/csky/csky-elf.h b/gcc/config/csky/csky-elf.h index 15a0e73baa4..a79d757c0de 100644 --- a/gcc/config/csky/csky-elf.h +++ b/gcc/config/csky/csky-elf.h @@ -70,8 +70,14 @@ %{EL:-EL} -X" #undef LIB_SPEC -#define LIB_SPEC \ - "%{pthread:-lpthread} -lc %{mccrt:-lcc-rt}" +#define LIB_SPEC "\ +%{pthread:-lpthread} \ +--start-group \ +-lc \ +%{msim:-lsemi}%{!msim:-lnosys} \ +--end-group \ +%{mccrt:-lcc-rt} \ +" /* FIXME add this to LIB_SPEC when need */ /* %{!shared:%{profile:-lc_p}%{!profile:-lc}}" */ diff --git a/gcc/config/csky/csky.opt b/gcc/config/csky/csky.opt index 60b51e5798f..505a7642293 100644 --- a/gcc/config/csky/csky.opt +++ b/gcc/config/csky/csky.opt @@ -192,3 +192,7 @@ Set the branch costs to roughly the specified number of instructions. msched-prolog Target Report Var(flag_sched_prolog) Init(0) Permit scheduling of function prologue and epilogue sequences. + +msim +Target +Use the simulator runtime. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6d9ff2c3362..9176c8306f0 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -829,7 +829,7 @@ Objective-C and Objective-C++ Dialects}. -mdsp -medsp -mvdsp @gol -mdiv -msmart -mhigh-registers -manchor @gol -mpushpop -mmultiple-stld -mconstpool -mstack-size -mccrt @gol --mbranch-cost=@var{n} -mcse-cc -msched-prolog} +-mbranch-cost=@var{n} -mcse-cc -msched-prolog -msim} @emph{Darwin Options} @gccoptlist{-all_load -allowable_client -arch -arch_errors_fatal @gol @@ -20835,6 +20835,11 @@ this option can result in code that is not compliant with the C-SKY V2 ABI prologue requirements and that cannot be debugged or backtraced. It is disabled by default. +@item -msim +@opindex msim +Links the library libsemi.a which is in compatible with simulator. Applicable +to ELF compiler only. + @end table @node Darwin Options