diff options
| author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-26 23:16:59 +0000 |
|---|---|---|
| committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-26 23:16:59 +0000 |
| commit | d4800e6e121978b5a68ab8fca5a5667226a137cb (patch) | |
| tree | 2e55f099a3546dacbecd262f43f7bc60a1e7a92f | |
| parent | 533e0227c6032dce358e42f4228bb10c9222f97d (diff) | |
| download | ppe42-gcc-d4800e6e121978b5a68ab8fca5a5667226a137cb.tar.gz ppe42-gcc-d4800e6e121978b5a68ab8fca5a5667226a137cb.zip | |
the undefine_null bypass pattern needs to match for DOS headers
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32199 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/fixinc/fixincl.x | 6 | ||||
| -rw-r--r-- | gcc/fixinc/inclhack.def | 6 | ||||
| -rwxr-xr-x | gcc/fixinc/inclhack.sh | 6 |
4 files changed, 15 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67ed4eb364b..7a5f66940af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-02-26 Bruce Korb <bkorb@gnu.org> + + fixinc/inclhack.def(undefine_null): the bypass pattern needs to + match for DOS headers, too. + fixinc/inclhack.sh,fixincl.x: regen + 2000-02-26 Geoff Keating <geoffk@cygnus.com> * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x index 8c337640df3..f120a2391b6 100644 --- a/gcc/fixinc/fixincl.x +++ b/gcc/fixinc/fixincl.x @@ -4010,13 +4010,13 @@ tSCC zUndefine_NullName[] = * content selection pattern - do fix if pattern found */ tSCC zUndefine_NullSelect0[] = - "^#[ \t]*define[ \t]*[ \t]NULL[ \t]"; + "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]"; /* * content bypass pattern - skip fix if pattern found */ tSCC zUndefine_NullBypass0[] = - "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t])"; + "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])"; #define UNDEFINE_NULL_TEST_CT 2 tTestDesc aUndefine_NullTests[] = { @@ -4027,7 +4027,7 @@ tTestDesc aUndefine_NullTests[] = { * Fix Command Arguments for Undefine_Null */ const char* apzUndefine_NullPatch[] = { "sed", - "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n\ + "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\ #undef NULL\n", (char*)NULL }; diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 0cd35ec8e44..e431d1fa562 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2387,9 +2387,9 @@ fix = { */ fix = { hackname = undefine_null; - select = "^#[ \t]*define[ \t]*[ \t]NULL[ \t]"; - bypass = "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t])"; - sed = "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n" + select = "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]"; + bypass = "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])"; + sed = "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n" "#undef NULL\n"; }; diff --git a/gcc/fixinc/inclhack.sh b/gcc/fixinc/inclhack.sh index 9d71cad2dac..06e08159ee6 100755 --- a/gcc/fixinc/inclhack.sh +++ b/gcc/fixinc/inclhack.sh @@ -3069,9 +3069,9 @@ struct utsname; # # Fix Undefine_Null # - if ( test -n "`egrep '^#[ ]*define[ ]*[ ]NULL[ ]' ${file}`" + if ( test -n "`egrep '^#[ ]*define[ ]*[ ]NULL[
]' ${file}`" ) > /dev/null 2>&1 ; then - if ( test -z "`egrep '#[ ]*(ifn|un)def[ ]*[ ]NULL($|[ ])' ${file}`" + if ( test -z "`egrep '#[ ]*(ifn|un)def[ ]*[ ]NULL($|[
])' ${file}`" ) > /dev/null 2>&1 ; then fixlist="${fixlist} undefine_null" @@ -3079,7 +3079,7 @@ struct utsname; then infile=${file} else infile=${DESTFILE} ; fi - sed -e '/^#[ ]*define[ ][ ]*NULL[ ]/i\ + sed -e '/^#[ ]*define[ ][ ]*NULL[
]/i\ #undef NULL ' \ < $infile > ${DESTDIR}/fixinc.tmp |

