Import pre-release gcc-5.0 to new vendor branch
[dragonfly.git] / contrib / gcc-5.0 / libgcc / config / arc / crtg.S
1 /* Code to start and stop profiling for the Synopsys DesignWare ARC CPU.
2
3    Copyright (C) 1994-2015 Free Software Foundation, Inc.
4    Contributor: Joern Rennecke <joern.rennecke@embecosm.com>
5                 on behalf of Synopsys Inc.
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 3, or (at your option) any later
12 version.
13
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17 for more details.
18
19 Under Section 7 of GPL version 3, you are granted additional
20 permissions described in the GCC Runtime Library Exception, version
21 3.1, as published by the Free Software Foundation.
22
23 You should have received a copy of the GNU General Public License and
24 a copy of the GCC Runtime Library Exception along with this program;
25 see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
26 <http://www.gnu.org/licenses/>.  */
27
28         .section .init
29         .global _init
30         .global _fini
31         .global __monstartup
32         mov_s   r0,_init
33         mov_s   r1,_fini
34         jl      __monstartup
35
36         .section .__arc_profile_desc, "a"
37         .global __arc_profile_desc_secstart
38         .balign 4
39 __arc_profile_desc_secstart:
40         .section .__arc_profile_forward, "a"
41         .global __arc_profile_forward_secstart
42         .balign 4
43 __arc_profile_forward_secstart:
44         .section .__arc_profile_counters, "aw"
45         .global __arc_profile_counters_secstart
46         .balign 4
47 __arc_profile_counters_secstart:
48
49         .section .fini
50         .global _mcleanup
51         jl      _mcleanup