aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>1999-11-01 19:14:50 +0100
committerBruce Korb <korbb@gcc.gnu.org>1999-11-01 18:14:50 +0000
commit99d525c9a005e1021b75f79e7c580f8ceafd23a2 (patch)
tree9a211533da2dc617d21a383d9a37efb1af82e484 /gcc/fixinc
parent9074519dd453b59f727b83dfe9169ccc5ae73778 (diff)
downloadgcc-99d525c9a005e1021b75f79e7c580f8ceafd23a2.zip
gcc-99d525c9a005e1021b75f79e7c580f8ceafd23a2.tar.gz
gcc-99d525c9a005e1021b75f79e7c580f8ceafd23a2.tar.bz2
Patch from Philippe De Muyter <phdm@macqel.be>
From-SVN: r30322
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/fixfixes.c6
-rw-r--r--gcc/fixinc/fixincl.c13
-rw-r--r--gcc/fixinc/fixtests.c6
3 files changed, 12 insertions, 13 deletions
diff --git a/gcc/fixinc/fixfixes.c b/gcc/fixinc/fixfixes.c
index c1586e8..737bc5b 100644
--- a/gcc/fixinc/fixfixes.c
+++ b/gcc/fixinc/fixfixes.c
@@ -371,10 +371,10 @@ apply_fix( fixname, filname )
const char* fixname;
const char* filname;
{
- #define _FT_(n,p) { n, p },
+#define _FT_(n,p) { n, p },
static fix_entry_t fix_table[] = { FIXUP_TABLE { NULL, NULL }};
- #undef _FT_
- #define FIX_TABLE_CT ((sizeof(fix_table)/sizeof(fix_table[0]))-1)
+#undef _FT_
+#define FIX_TABLE_CT ((sizeof(fix_table)/sizeof(fix_table[0]))-1)
char* buf;
int ct = FIX_TABLE_CT;
diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c
index 1e7c126..6a143fd 100644
--- a/gcc/fixinc/fixincl.c
+++ b/gcc/fixinc/fixincl.c
@@ -24,9 +24,10 @@ Boston, MA 02111-1307, USA. */
#include "fixlib.h"
- #include <fcntl.h>
- #include <sys/mman.h>
- #define BAD_ADDR ((void*)-1)
+#if HAVE_MMAP
+#include <sys/mman.h>
+#define BAD_ADDR ((void*)-1)
+#endif
#include <signal.h>
@@ -528,10 +529,8 @@ run_compiles ()
&& (p_fixd->papz_machs != (const char**) NULL) )
{
tSCC case_fmt[] = "case %s in\n"; /* 9 bytes, plus string */
- tSCC esac_fmt[] = " )\n" /* 3 bytes */
- " echo %s ;;\n" /* 13 bytes */
- "* ) echo %s ;;\n" /* 13 bytes */
- "esac"; /* 4 bytes */
+ tSCC esac_fmt[] =
+ " )\n echo %s ;;\n* ) echo %s ;;\nesac";/* 4 bytes */
tSCC skip[] = "skip"; /* 4 bytes */
tSCC run[] = "run"; /* 3 bytes */
/* total bytes to add to machine sum: 49 - see fixincl.tpl */
diff --git a/gcc/fixinc/fixtests.c b/gcc/fixinc/fixtests.c
index aac1492..fa44703 100644
--- a/gcc/fixinc/fixtests.c
+++ b/gcc/fixinc/fixtests.c
@@ -295,10 +295,10 @@ run_test( tname, fname, text )
const char* fname;
const char* text;
{
- #define _FT_(n,p) { n, p },
+#define _FT_(n,p) { n, p },
static test_entry_t test_table[] = { FIX_TEST_TABLE { NULL, NULL }};
- #undef _FT_
- #define TEST_TABLE_CT ((sizeof(test_table)/sizeof(test_table[0]))-1)
+#undef _FT_
+#define TEST_TABLE_CT ((sizeof(test_table)/sizeof(test_table[0]))-1)
int ct = TEST_TABLE_CT;
test_entry_t* pte = test_table;