]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/gcc-tumbl.git/commitdiff
MBTumbl: Fix crt and opt
authorMartin Meloun <meloumar@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 14:47:50 +0000 (16:47 +0200)
committerMartin Meloun <meloumar@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 14:47:50 +0000 (16:47 +0200)
Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
gcc/config/mbtumbl/mbtumbl.opt
gcc/config/microblaze/microblaze.h

index 2c511d0bfee85ea5951e8aff073c55fbf766e07b..b8805b89f6e3ff9211d9eaccc6d7a684cbd843fc 100644 (file)
@@ -61,7 +61,7 @@ Use the soft multiply emulation
 
 mxl-soft-div
 Target Mask(SOFT_DIV)
-Use the software emulation for divides
+Use the software emulation for divides (default)
 
 mxl-barrel-shift
 Target Mask(BARREL_SHIFT)
index c55986cfcd87d88e2a08fd09e7bcff5c119ee47d..a1688461714e4086738702dfcca131dca1560747 100644 (file)
@@ -865,10 +865,17 @@ do {                                                                       \
 /* We do this to save a few 10s of code space that would be taken up
    by the call_FUNC () wrappers, used by the generic CRT_CALL_STATIC_FUNCTION
    definition in crtstuff.c.  */
+#ifndef ARCH_mbtumbl
 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC)     \
     asm ( SECTION_OP "\n"                               \
           "\tbrlid   r15, " #FUNC "\n\t nop\n"         \
           TEXT_SECTION_ASM_OP);
+#else
+#define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC)     \
+    asm ( SECTION_OP "\n"                               \
+          "\tbrli    r15, " #FUNC "\n"         \
+          TEXT_SECTION_ASM_OP);
+#endif
 
 /* We need to group -lm as well, since some Newlib math functions 
    reference __errno!  */