mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-22 11:23:27 +08:00
C string litteral is const, fix return type of default_elfinterp. Remove #ifndef TCC_IS_NATIVE in arm-gen.c as suggested by grischka.
This commit is contained in:
@@ -203,7 +203,7 @@ static int regmask(int r) {
|
|||||||
/******************************************************/
|
/******************************************************/
|
||||||
|
|
||||||
#if defined(TCC_ARM_EABI) && !defined(CONFIG_TCC_ELFINTERP)
|
#if defined(TCC_ARM_EABI) && !defined(CONFIG_TCC_ELFINTERP)
|
||||||
char *default_elfinterp(struct TCCState *s)
|
const char *default_elfinterp(struct TCCState *s)
|
||||||
{
|
{
|
||||||
if (s->float_abi == ARM_HARD_FLOAT)
|
if (s->float_abi == ARM_HARD_FLOAT)
|
||||||
return "/lib/ld-linux-armhf.so.3";
|
return "/lib/ld-linux-armhf.so.3";
|
||||||
@@ -2150,6 +2150,6 @@ ST_FUNC void gen_vla_alloc(CType *type, int align) {
|
|||||||
#endif
|
#endif
|
||||||
/*************************************************************/
|
/*************************************************************/
|
||||||
|
|
||||||
#ifndef TCC_IS_NATIVE
|
// #ifndef TCC_IS_NATIVE
|
||||||
#include "arm-asm.c"
|
#include "arm-asm.c"
|
||||||
#endif
|
// #endif
|
||||||
|
|||||||
2
tcc.h
2
tcc.h
@@ -1534,7 +1534,7 @@ ST_FUNC void gen_opl(int op);
|
|||||||
/* ------------ arm-gen.c ------------ */
|
/* ------------ arm-gen.c ------------ */
|
||||||
#ifdef TCC_TARGET_ARM
|
#ifdef TCC_TARGET_ARM
|
||||||
#if defined(TCC_ARM_EABI) && !defined(CONFIG_TCC_ELFINTERP)
|
#if defined(TCC_ARM_EABI) && !defined(CONFIG_TCC_ELFINTERP)
|
||||||
PUB_FUNC char *default_elfinterp(struct TCCState *s);
|
PUB_FUNC const char *default_elfinterp(struct TCCState *s);
|
||||||
#endif
|
#endif
|
||||||
ST_FUNC void arm_init(struct TCCState *s);
|
ST_FUNC void arm_init(struct TCCState *s);
|
||||||
ST_FUNC void gen_cvt_itof1(int t);
|
ST_FUNC void gen_cvt_itof1(int t);
|
||||||
|
|||||||
Reference in New Issue
Block a user