ref: 2875136e3759285bc0e00babcd0b7d86e7731eae
parent: 8148ffb8012e09878cef5290568b40978e61afa1
author: Ori Bernstein <[email protected]>
date: Wed Jul 16 07:46:06 EDT 2014
Use probed values from configure Drop platform.h for config.h.
--- a/6/isel.c
+++ b/6/isel.c
@@ -14,8 +14,7 @@
#include "parse.h"
#include "opt.h"
#include "asm.h"
-
-#include "platform.h"
+#include "../config.h"
/* string tables */
char *insnfmts[] = {
--- a/6/platform.h
+++ /dev/null
@@ -1,9 +1,0 @@
-#if defined(__APPLE__) && defined(__MACH__)
-/* for OSX */
-# define Asmcmd "as -g -o %s %s"
-# define Symprefix "_"
-#else
-/* Default to linux */
-# define Asmcmd "as -g -o %s %s"
-# define Symprefix ""
-#endif
--- a/6/simp.c
+++ b/6/simp.c
@@ -12,8 +12,7 @@
#include "parse.h"
#include "opt.h"
#include "asm.h"
-
-#include "platform.h" /* HACK. We need some platform specific code gen behavior. *sigh.* */
+#include "../config.h"
/* takes a list of nodes, and reduces it (and it's subnodes) to a list
--- a/configure
+++ b/configure
@@ -37,12 +37,12 @@
case $OS in
*Linux*)
echo '#define Asmcmd "as -g -o %s %s"' >> config.h
- echo '#define Fprefix ""' >> config.h
+ echo '#define Symprefix ""' >> config.h
echo 'export SYS=linux' >> config.mk
;;
*Darwin*)
echo '#define Asmcmd "as -g -o %s %s"' >> config.h
- echo '#define Fprefix "_"' >> config.h
+ echo '#define Symprefix "_"' >> config.h
echo 'export SYS=osx' >> config.mk
;;
*)