Skip to content
Snippets Groups Projects
Commit cfd0fecd authored by John Crispin's avatar John Crispin
Browse files

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

SVN-Revision: 9167
parent 4af66e88
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,7 @@ TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib ...@@ -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
......
...@@ -67,7 +67,7 @@ Index: gcc-3.4.6/gcc/c-opts.c ...@@ -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')
......
...@@ -67,7 +67,7 @@ Index: gcc-4.1.2/gcc/c-opts.c ...@@ -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')
......
...@@ -67,7 +67,7 @@ Index: gcc-4.2.0/gcc/c-opts.c ...@@ -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')
......
...@@ -67,7 +67,7 @@ Index: gcc-4.2.0/gcc/c-opts.c ...@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment