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
039df8c7
Commit
039df8c7
authored
Nov 30, 2000
by
J. David Anglin
Committed by
Bruce Korb
Nov 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent dual double definition protection
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r37895
parent
42cfed37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
gcc/ChangeLog
+6
-0
gcc/fixinc/fixincl.x
+18
-4
gcc/fixinc/inclhack.def
+5
-2
No files found.
gcc/ChangeLog
View file @
039df8c7
2000-11-30 J. David Anglin <dave.anglin@nrc.ca>
Bruce Korb <bkorb@gnu.org>
* fixinc/inclhack.def(): prevent dual double definition protection
* fixinc/fixincl.x: regenerate
2000-11-29 Loren J. Rittle <ljrittle@acm.org>
* fixinc/Makefile.in (fixincl.x): Explicitly state the
...
...
gcc/fixinc/fixincl.x
View file @
039df8c7
...
...
@@ -2140,10 +2140,24 @@ tSCC zHpux_MaxintList[] =
* content selection pattern - do fix if pattern found
*/
tSCC zHpux_MaxintSelect0[] =
"^#[ \t]*define[ \t]
*
MAXINT[ \t]";
"^#[ \t]*define[ \t]
+
MAXINT[ \t]";
#define HPUX_MAXINT_TEST_CT 1
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zHpux_MaxintBypass0[] =
"^#[ \t]*ifndef[ \t]+MAXINT";
/*
* perform the 'test' shell command - do fix on success
*/
tSCC zHpux_MaxintTest0[] =
"-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
#define HPUX_MAXINT_TEST_CT 3
static tTestDesc aHpux_MaxintTests[] = {
{ TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
{ TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
{ TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
/*
...
...
@@ -2154,7 +2168,7 @@ static const char* apzHpux_MaxintPatch[] = {
"#ifndef MAXINT\n\
%0\n\
#endif",
"^#[ \t]*define[ \t]
*
MAXINT[ \t].*",
"^#[ \t]*define[ \t]
+
MAXINT[ \t].*",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
...
...
@@ -5265,7 +5279,7 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 13
4
#define REGEX_COUNT 13
5
#define MACH_LIST_SIZE_LIMIT 279
#define FIX_COUNT 130
...
...
gcc/fixinc/inclhack.def
View file @
039df8c7
...
...
@@ -1221,11 +1221,14 @@ fix = {
hackname = hpux_maxint;
files = sys/param.h;
files = values.h;
select = "^#[ \t]*define[ \t]*MAXINT[ \t]";
select = "^#[ \t]*define[ \t]+MAXINT[ \t]";
bypass = "^#[ \t]*ifndef[ \t]+MAXINT";
test =
"-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
c_fix = format;
c_fix_arg = "#ifndef MAXINT\n%0\n#endif";
c_fix_arg = "^#[ \t]*define[ \t]
*
MAXINT[ \t].*";
c_fix_arg = "^#[ \t]*define[ \t]
+
MAXINT[ \t].*";
test_text = '#define MAXINT 0x7FFFFFFF';
};
...
...
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