zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Use CC to determine if gcc is used
@ 2015-04-26 17:48 Heiko Becker
  2015-04-27  8:47 ` Peter Stephenson
  0 siblings, 1 reply; 10+ messages in thread
From: Heiko Becker @ 2015-04-26 17:48 UTC (permalink / raw)
  To: zsh-workers

I ran into this with gcc-5.1 and CPP set to x86_64-pc-linux-gnu-cpp
which isn't catched by the intended case branch and caused zsh to be
miscompiled in the process.
---
 Src/zsh.mdd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 71dd613..3c8c355 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -28,8 +28,8 @@ hdrdeps="zshcurses.h zshterm.h"
 # on the option to remove them being the same.
 signames.c: signames1.awk signames2.awk ../config.h @SIGNAL_H@
 	$(AWK) -f $(sdir)/signames1.awk @SIGNAL_H@ >sigtmp.c
-	case "$(CPP)" in \
-	gcc*) \
+	case "$(CC)" in \
+	*gcc*) \
 	$(CPP) -P sigtmp.c >sigtmp.out;; \
 	*) \
 	$(CPP) sigtmp.c >sigtmp.out;; \
-- 
2.3.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-27 17:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-26 17:48 [PATCH] Use CC to determine if gcc is used Heiko Becker
2015-04-27  8:47 ` Peter Stephenson
2015-04-27  9:07   ` Peter Stephenson
2015-04-27 13:30     ` Daniel Shahaf
2015-04-27 14:11       ` Peter Stephenson
2015-04-27 16:37         ` Heiko Becker
2015-04-27 16:50           ` Peter Stephenson
2015-04-27 16:57             ` Heiko Becker
2015-04-27 17:09               ` Peter Stephenson
2015-04-27 17:26                 ` Heiko Becker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).