4.115
Last change
on this file since 56c6888 was
0dae390,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/07/14 at 15:00:45
|
libbsp/v850/shared/crt1.c: Remove warnings
|
-
Property mode set to
100644
|
File size:
414 bytes
|
Line | |
---|
1 | /* |
---|
2 | * From newlib ==> libc/sys/sysnecv850/crt1.c |
---|
3 | * |
---|
4 | * Obtained from newlib: 29 May 2012 |
---|
5 | * Warnings fixed: 7 October 2014 |
---|
6 | */ |
---|
7 | |
---|
8 | void __main(void); |
---|
9 | typedef void (*pfunc) (void); |
---|
10 | extern pfunc __ctors[]; |
---|
11 | extern pfunc __ctors_end[]; |
---|
12 | |
---|
13 | void __main(void) |
---|
14 | { |
---|
15 | static int initialized; |
---|
16 | if (! initialized) |
---|
17 | { |
---|
18 | pfunc *p; |
---|
19 | |
---|
20 | initialized = 1; |
---|
21 | for (p = __ctors_end; p > __ctors; ) |
---|
22 | (*--p) (); |
---|
23 | |
---|
24 | } |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.