From: Martin Meloun Date: Mon, 23 Sep 2013 14:47:50 +0000 (+0200) Subject: MBTumbl: Fix crt and opt X-Git-Url: http://rtime.felk.cvut.cz/gitweb/fpga/lx-cpu1/gcc-tumbl.git/commitdiff_plain/228af5bdf6a23075cfdfce2abb2f50fa069c089b MBTumbl: Fix crt and opt Signed-off-by: Martin Meloun --- diff --git a/gcc/config/mbtumbl/mbtumbl.opt b/gcc/config/mbtumbl/mbtumbl.opt index 2c511d0bfee..b8805b89f6e 100644 --- a/gcc/config/mbtumbl/mbtumbl.opt +++ b/gcc/config/mbtumbl/mbtumbl.opt @@ -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) diff --git a/gcc/config/microblaze/microblaze.h b/gcc/config/microblaze/microblaze.h index c55986cfcd8..a1688461714 100644 --- a/gcc/config/microblaze/microblaze.h +++ b/gcc/config/microblaze/microblaze.h @@ -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! */