URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-src/gcc-4.2.2/gcc
- from Rev 177 to Rev 192
- ↔ Reverse comparison
Rev 177 → Rev 192
/config/or32/initfini.c
94,8 → 94,12
"); |
|
/* .fini section start. |
This must appear at the start of the .init section. */ |
This must appear at the start of the .init section. |
|
Note that the prologue is slightly different order to standard. Saving the |
link register in the delay slot will pick up the wrong value! |
*/ |
|
asm ("\n\ |
.section .fini\n\ |
.global fini\n\ |
103,9 → 107,9
fini:\n\ |
l.addi r1,r1,-16\n\ |
l.sw 12(r1),r2\n\ |
l.sw 8(r1),r9\n\ |
l.jal __do_global_dtors\n\ |
l.addi r2,r1,16\n\ |
l.sw 8(r1),r9\n\ |
l.j __do_global_dtors\n\ |
"); |
|
#endif /* CRT_INIT */ |
145,7 → 149,8
|
asm ("\n\ |
.section .init\n\ |
l.j __do_global_ctors\n\ |
l.jal __do_global_ctors\n\ |
l.nop\n\ |
l.lwz r9,8(r1)\n\ |
l.lwz r2,12(r1)\n\ |
l.jr r9\n\ |