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
f4306baa
Commit
f4306baa
authored
Aug 23, 2000
by
Eli Zaretskii
Committed by
Bruce Korb
Aug 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sed script for sysv86_string fix
From-SVN: r35908
parent
ed4befff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
gcc/ChangeLog
+5
-0
gcc/fixinc/fixincl.x
+2
-2
gcc/fixinc/inclhack.def
+4
-7
No files found.
gcc/ChangeLog
View file @
f4306baa
2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
* fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
works inside fixincl.
Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
* simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
...
...
gcc/fixinc/fixincl.x
View file @
f4306baa
...
...
@@ -4217,12 +4217,12 @@ const char* apzSysv68_StringPatch[] = { "sed",
"-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
"-e", "/^extern char$/N",
"-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
"-e", "/^extern int$/N",
"-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
"-e", "/^\tstrncmp(),$/N",
"-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
extern unsigned int\\\n\
\\2/",
"-e", "/^extern int$/N",
"-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
...
...
gcc/fixinc/inclhack.def
View file @
f4306baa
...
...
@@ -2587,17 +2587,13 @@ fix = {
sed = "/^extern char$/N";
sed = "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/";
/*
* This sed expression is broken inside fixincl.
* The same expression seems to work outside, however :-(
*/
sed = "/^extern int$/N";
sed = "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/";
sed = "/^\tstrncmp(),$/N";
sed = 's/^\(' "\t" 'strncmp()\),\n\(' "\t" 'strlen(),\)$/'
'\1;' "\\\nextern unsigned int\\\n\\2/";
sed = "/^extern int$/N";
sed = "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/";
test_text =
"extern int strlen();\n"
...
...
@@ -2608,6 +2604,7 @@ fix = {
"\tmemcpy();\n"
"extern int\n"
"\tstrcmp(),\n"
"\tstrncmp(),\n"
"\tstrlen(),\n"
"\tstrspn();\n"
...
...
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