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
180b3d50
Commit
180b3d50
authored
Jun 17, 1999
by
Bruce Korb
Committed by
Bruce Korb
Jun 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISCTRL fix and dgux patch
From-SVN: r27577
parent
2c8ec431
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
40 deletions
+75
-40
gcc/ChangeLog
+7
-0
gcc/fixinc/fixincl.x
+0
-0
gcc/fixinc/inclhack.def
+67
-40
gcc/fixinc/inclhack.sh
+0
-0
gcc/fixincludes
+1
-0
No files found.
gcc/ChangeLog
View file @
180b3d50
Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
* fixincludes: ISCNTL patch
* fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
(dgux_int_varargs): new for DG/UX
* fixinc/{fixincl.x,inclhack.sh}: Regenerated.
Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (strength_reduce): When doing biv->giv conversion, update
...
...
gcc/fixinc/fixincl.x
View file @
180b3d50
This diff is collapsed.
Click to expand it.
gcc/fixinc/inclhack.def
View file @
180b3d50
...
...
@@ -262,54 +262,79 @@ fix = {
};
#ifdef no_more
/*
* And also with the HP-UX 10 and HP-UX 11 sys/pci.h file
* Completely replace <_int_varargs.h> with a file that includes gcc's
* stdarg.h or varargs.h files as appropriate on DG/UX
*/
fix = {
hackname =
cxx_cmnt_hpux
;
files =
sys/pci
.h;
s
elect = "System Private Structures";
sed = "s|//.*$||g";
};
hackname =
dgux_int_varargs
;
files =
_int_varargs
.h;
s
hell = "cat > /dev/null\ncat << '_EOF_'
\#ifndef __INT_VARARGS_H
\#define __INT_VARARGS_H
/************************************************************************/
/* _INT_VARARGS.H - Define the common stuff for varargs/stdarg/stdio. */
/************************************************************************/
/*
* Turning // comments into normal comments trashes this IRIX 4.0.1
* header file, which embeds // comments inside multi-line
* comments. If this looks like the IRIX header file, we refix it by
* just throwing away the // comments.
*/
fix = {
hackname = cxx_cmnt_irix;
files = fam.h;
select = indigo.esd;
sed = "s|//.*$||g";
};
** This file is a DG internal header. Never include this
** file directly.
*/
\#ifndef ___int_features_h
\#include <sys/_int_features.h>
\#endif
/*
* Same problem with a file from SunOS 4.1.3 : a header file containing
* the string "//" embedded in "/ * * /"
*/
fix = {
hackname = cxx_cmnt_sunos;
files = sbusdev/audiovar.h;
files = sys/audiovar.h;
sed = "s|//.*$||g";
};
\#if !(defined(_VA_LIST) || defined(_VA_LIST_))
\#define _VA_LIST
\#define _VA_LIST_
\#ifdef __LINT__
/*
* There is a similar problem with the VxWorks drv/netif/if_med.h file.
*/
fix = {
hackname = cxx_cmnt_vxworks;
files = drv/netif/if_med.h;
select = "Wind River";
sed = "s|//.*$||g";
\#ifdef __STDC__
typedef void * va_list;
\#else
typedef char * va_list;
\#endif
\#else
\#if _M88K_ANY
\#if defined(__DCC__)
typedef struct {
int next_arg;
int *mem_ptr;
int *reg_ptr;
} va_list;
\#else /* ! defined(__DCC__) */
typedef struct {
int __va_arg; /* argument number */
int *__va_stk; /* start of args passed on stack */
int *__va_reg; /* start of args passed in regs */
} va_list;
\#endif /* ! defined(__DCC__) */
\#elif _IX86_ANY
\#if defined(__GNUC__) || defined(__STDC__)
typedef void * va_list;
\#else
typedef char * va_list;
\#endif
\#endif /* _IX86_ANY */
\#endif /* __LINT__ */
\#endif /* !(defined(_VA_LIST) || defined(_VA_LIST_)) */
\#endif /* #ifndef __INT_VARARGS_H */
_EOF_";
};
#endif
/*
* Remove the double-slash comments
...
...
@@ -334,7 +359,7 @@ fix = {
* Now that we delete the // comments instead of converting them to / * * /,
* traditional hacks like irix_bogus_cxx_cmnt, no longer work (which
* strangely enough was also used on alpha-dec-osf4.0d). If we skip the
* hack whenever we see ``"//"'', then the need for the secondary hack
* hack whenever we see ``"//"'
', then the need for the secondary hack
* disappears. Note: it is painful to ensure that the first quote
* exists, so we just check for the trailing quote directly abutting
* the //. Note: We should never touch a line that has // completely
...
...
@@ -600,7 +625,7 @@ fix = {
* ANSI macro substitution rules prohibit looking inside quoted strings
* for the substitution names. A side effect is that the quotes are
* inserted in the definitions of those macros as well. So, the last
*
three
sed expressions are supposed to clean up the definitions, as
*
several
sed expressions are supposed to clean up the definitions, as
* long as those definitions are using "c", "g" or "x" as the macro
* argument :). Yuck.
*/
...
...
@@ -622,6 +647,9 @@ fix = {
sed = "/#[ \t]*define[ \t]*[ \t]BSD43_CTRL/"
"s/'\\([cgx]\\)'/\\1/g";
sed = "/#[ \t]*define[ \t]*[ \t][_]*ISCTRL/"
"s/'\\([cgx]\\)'/\\1/g";
};
...
...
@@ -2450,5 +2478,4 @@ fix = {
"cat > /dev/null";
};
/*EOF*/
gcc/fixinc/inclhack.sh
View file @
180b3d50
This diff is collapsed.
Click to expand it.
gcc/fixincludes
View file @
180b3d50
...
...
@@ -338,6 +338,7 @@ while [ $# != 0 ]; do
/#[ ]*define[ ]*[ ]CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#[ ]*define[ ]*[ ]_CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#[ ]*define.BSD43_CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#[ ]*define[ ]*[ ][_]*ISCTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#[ ]*[el]*if/{
s/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g
...
...
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