1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 04:26:16 +02:00

changed the -fhonours-copts gcc patch, such that the function needs to be turned on explicitly

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9167 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2007-10-07 00:26:02 +00:00
parent 1d6c40bd4d
commit a5d5856756
5 changed files with 5 additions and 4 deletions

View File

@ -63,6 +63,7 @@ TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
export PATH:=$(TARGET_PATH) export PATH:=$(TARGET_PATH)
export STAGING_DIR export STAGING_DIR
export GCC_HONOUR_COPTS:=0
LINUX_HEADERS_DIR:=$(BUILD_DIR_TOOLCHAIN)/linux LINUX_HEADERS_DIR:=$(BUILD_DIR_TOOLCHAIN)/linux

View File

@ -67,7 +67,7 @@ Index: gcc-3.4.6/gcc/c-opts.c
+ char *ev = getenv ("GCC_HONOUR_COPTS"); + char *ev = getenv ("GCC_HONOUR_COPTS");
+ int evv; + int evv;
+ if (ev == NULL) + if (ev == NULL)
+ evv = 0; + evv = -1;
+ else if ((*ev == '0') || (*ev == '\0')) + else if ((*ev == '0') || (*ev == '\0'))
+ evv = 0; + evv = 0;
+ else if (*ev == '1') + else if (*ev == '1')

View File

@ -67,7 +67,7 @@ Index: gcc-4.1.2/gcc/c-opts.c
+ char *ev = getenv ("GCC_HONOUR_COPTS"); + char *ev = getenv ("GCC_HONOUR_COPTS");
+ int evv; + int evv;
+ if (ev == NULL) + if (ev == NULL)
+ evv = 0; + evv = -1;
+ else if ((*ev == '0') || (*ev == '\0')) + else if ((*ev == '0') || (*ev == '\0'))
+ evv = 0; + evv = 0;
+ else if (*ev == '1') + else if (*ev == '1')

View File

@ -67,7 +67,7 @@ Index: gcc-4.2.0/gcc/c-opts.c
+ char *ev = getenv ("GCC_HONOUR_COPTS"); + char *ev = getenv ("GCC_HONOUR_COPTS");
+ int evv; + int evv;
+ if (ev == NULL) + if (ev == NULL)
+ evv = 0; + evv = -1;
+ else if ((*ev == '0') || (*ev == '\0')) + else if ((*ev == '0') || (*ev == '\0'))
+ evv = 0; + evv = 0;
+ else if (*ev == '1') + else if (*ev == '1')

View File

@ -67,7 +67,7 @@ Index: gcc-4.2.0/gcc/c-opts.c
+ char *ev = getenv ("GCC_HONOUR_COPTS"); + char *ev = getenv ("GCC_HONOUR_COPTS");
+ int evv; + int evv;
+ if (ev == NULL) + if (ev == NULL)
+ evv = 0; + evv = -1;
+ else if ((*ev == '0') || (*ev == '\0')) + else if ((*ev == '0') || (*ev == '\0'))
+ evv = 0; + evv = 0;
+ else if (*ev == '1') + else if (*ev == '1')