Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
42a2c30e
Commit
42a2c30e
authored
Feb 26, 2000
by
Bruce Korb
Committed by
Bruce Korb
Feb 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the undefine_null bypass pattern needs to match for DOS headers
From-SVN: r32199
parent
4592bdcb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
gcc/ChangeLog
+6
-0
gcc/fixinc/fixincl.x
+3
-3
gcc/fixinc/inclhack.def
+3
-3
gcc/fixinc/inclhack.sh
+3
-3
No files found.
gcc/ChangeLog
View file @
42a2c30e
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
...
...
gcc/fixinc/fixincl.x
View file @
42a2c30e
...
...
@@ -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 };
...
...
gcc/fixinc/inclhack.def
View file @
42a2c30e
...
...
@@ -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";
};
...
...
gcc/fixinc/inclhack.sh
View file @
42a2c30e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment