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
b0588013
Commit
b0588013
authored
Jan 04, 2003
by
Bruce Korb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove obsolete fixes
From-SVN: r60883
parent
68ee6df6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
304 deletions
+22
-304
gcc/ChangeLog
+19
-0
gcc/fixinc/fixinc.svr4
+3
-80
gcc/fixinc/fixincl.x
+0
-0
gcc/fixinc/inclhack.def
+0
-0
gcc/fixinc/mkfixinc.sh
+0
-1
gcc/fixinc/tests/base/X11/Intrinsic.h
+0
-14
gcc/fixinc/tests/base/math.h
+0
-22
gcc/fixinc/tests/base/stdlib.h
+0
-14
gcc/fixinc/tests/base/sys/byteorder.h
+0
-152
gcc/fixinc/tests/base/sys/param.h
+0
-6
gcc/fixinc/tests/base/sys/stat.h
+0
-5
gcc/fixinc/tests/base/time.h
+0
-10
No files found.
gcc/ChangeLog
View file @
b0588013
2002
-
12
-
31
Larin
Hennessy
<
larin
@science
.
oregonstate
.
edu
>
*
fixinc
/
fixinc
.
svr4
:
Remove
references
to
i860
,
Sony
NewsOS
,
and
spur
.
*
fixinc
/
inclhack
.
def
:
Remove
tests
for
Apple
A
/
UX
,
ARM
/
RISCiX
,
DG
/
UX
,
m88k
-*-
sysv3
*
,
Sony
NewsOS
.
Remove
references
to
i860
.
Cleanup
handling
of
replacement
text
.
*
fixinc
/
mkfixinc
.
sh
:
Remove
reference
to
i
?
86
-*-
osf1
*
2003
-
01
-
04
Bruce
Korb
<
bkorb
@gnu
.
org
>
*
fixinc
/
tests
/
base
/
math
.
h
:
removed
obsolete
results
*
fixinc
/
tests
/
base
/
stdlib
.
h
:
ditto
*
fixinc
/
tests
/
base
/
sys
/
param
.
h
:
ditto
*
fixinc
/
tests
/
base
/
sys
/
stat
.
h
:
ditto
*
fixinc
/
tests
/
base
/
time
.
h
:
ditto
*
fixinc
/
tests
/
base
/
X11
/
Intrinsic
.
h
:
removed
obsolete
file
*
fixinc
/
tests
/
base
/
sys
/
byteorder
.
h
:
ditto
*
fixinc
/
inclhack
.
def
:
Remove
superfluous
backslashes
2003
-
01
-
04
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
config
/
h8300
/
h8300
-
protos
.
h
:
Add
prototypes
for
...
...
gcc/fixinc/fixinc.svr4
View file @
b0588013
...
...
@@ -197,8 +197,6 @@ while [ $# != 0 ]; do
/#[a-z]*if.*[ (]m68k/ s/\([^_]\)m68k/\1__m68k__/g
/#[a-z]*if.*[ (]__i386\([^_]\)/ s/__i386/__i386__/g
/#[a-z]*if.*[ (]i386/ s/\([^_]\)i386/\1__i386__/g
/#[a-z]*if.*[ (!]__i860\([^_]\)/ s/__i860/__i860__/g
/#[a-z]*if.*[ (!]i860/ s/\([^_]\)i860/\1__i860__/g
/#[a-z]*if.*[ (]sparc/ s/\([^_]\)sparc/\1__sparc__/g
/#[a-z]*if.*[ (]mc68000/ s/\([^_]\)mc68000/\1__mc68000__/g
/#[a-z]*if.*[ (]vax/ s/\([^_]\)vax/\1__vax__/g
...
...
@@ -659,8 +657,8 @@ if [ \! -z "$file_to_fix" ]; then
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
sed
-e
'/#define[ ]*__i386 /d'
-e
'/#define[ ]*__sparc /d'
\
-e
'/#define[ ]*__
i860 /d'
-e
'/#define[ ]*__m88k /d'
\
-e
'/#define[ ]*__m
ips /d'
-e
'/#define[ ]*__m
68k /d'
\
-e
'/#define[ ]*__
m88k /d'
-e
'/#define[ ]*__mips /d'
\
-e
'/#define[ ]*__m68k /d'
\
/tmp/
$base
>
/tmp/
$base
.sed
if
cmp
$file_to_fix
/tmp/
$base
.sed
>
/dev/null 2>&1
;
then
\
true
...
...
@@ -1274,79 +1272,6 @@ s/;$/)/
rm
-f
/tmp/
$base
/tmp/
$base
.sed
fi
# Sony NEWSOS 5.0 does not support the complete ANSI C standard.
if
[
-x
/bin/sony
]
;
then
if
/bin/sony
;
then
# Change <stdio.h> to not define __filbuf, __flsbuf, and __iob
file
=
stdio.h
base
=
`
basename
$file
`
.
$$
if
[
-r
${
LIB
}
/
$file
]
;
then
file_to_fix
=
${
LIB
}
/
$file
else
if
[
-r
${
INPUT
}
/
$file
]
;
then
file_to_fix
=
${
INPUT
}
/
$file
else
file_to_fix
=
""
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
sed
-e
'
s/__filbuf/_filbuf/g
s/__flsbuf/_flsbuf/g
s/__iob/_iob/g
'
/tmp/
$base
>
/tmp/
$base
.sed
mv /tmp/
$base
.sed /tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
.sed
>
/dev/null 2>&1
;
then
true
else
echo
Fixed
$file_to_fix
rm
-f
${
LIB
}
/
$file
cp /tmp/
$base
${
LIB
}
/
$file
chmod a+r
${
LIB
}
/
$file
fi
rm
-f
/tmp/
$base
fi
# Change <ctype.h> to not define __ctype
file
=
ctype.h
base
=
`
basename
$file
`
.
$$
if
[
-r
${
LIB
}
/
$file
]
;
then
file_to_fix
=
${
LIB
}
/
$file
else
if
[
-r
${
INPUT
}
/
$file
]
;
then
file_to_fix
=
${
INPUT
}
/
$file
else
file_to_fix
=
""
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
cp
$file_to_fix
/tmp/
$base
chmod +w /tmp/
$base
sed
-e
'
s/__ctype/_ctype/g
'
/tmp/
$base
>
/tmp/
$base
.sed
mv /tmp/
$base
.sed /tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
.sed
>
/dev/null 2>&1
;
then
true
else
echo
Fixed
$file_to_fix
rm
-f
${
LIB
}
/
$file
cp /tmp/
$base
${
LIB
}
/
$file
chmod a+r
${
LIB
}
/
$file
fi
rm
-f
/tmp/
$base
fi
fi
fi
# In limits.h, put #ifndefs around things that are supposed to be defined
# in float.h to avoid redefinition errors if float.h is included first.
# Solaris 2.1 has this problem.
...
...
@@ -1701,9 +1626,7 @@ htons (unsigned int __arg)
return __result;
}
#elif ((defined (__i860__) && !defined (__i860_big_endian__)) \
|| defined (__ns32k__) || defined (__vax__) \
|| defined (__spur__) || defined (__arm__))
#elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))
#ifndef __BYTE_ORDER__
#define __BYTE_ORDER__ __LITTLE_ENDIAN__
...
...
gcc/fixinc/fixincl.x
View file @
b0588013
This diff is collapsed.
Click to expand it.
gcc/fixinc/inclhack.def
View file @
b0588013
This diff is collapsed.
Click to expand it.
gcc/fixinc/mkfixinc.sh
View file @
b0588013
...
...
@@ -73,7 +73,6 @@ case $machine in
i370-
*
-openedition
|
\
i?86-moss-msdos
*
|
\
i?86-
*
-moss
*
|
\
i?86-
*
-osf1
*
|
\
i?86-
*
-win32
|
\
i?86-
*
-pe
|
\
i?86-
*
-cygwin
*
|
\
...
...
gcc/fixinc/tests/base/X11/Intrinsic.h
deleted
100644 → 0
View file @
68ee6df6
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/X11/Intrinsic.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( ARM_NORCROFT_HINT_CHECK )
p_type
mumble
;
#endif
/* ARM_NORCROFT_HINT_CHECK */
gcc/fixinc/tests/base/math.h
View file @
b0588013
...
...
@@ -30,11 +30,6 @@ struct exception;
#endif
/* BROKEN_CABS_CHECK */
#if defined( FIX_HEADER_BREAKAGE_CHECK )
extern
double
floor
(),
ceil
(),
fmod
(),
fabs
_PARAMS
((
double
));
#endif
/* FIX_HEADER_BREAKAGE_CHECK */
#if defined( HPUX11_CPP_POW_INLINE_CHECK )
#endif
/* HPUX11_CPP_POW_INLINE_CHECK */
...
...
@@ -60,23 +55,6 @@ extern double fmod(double, double);
#endif
/* ISC_FMOD_CHECK */
#if defined( M88K_BAD_HYPOT_OPT_CHECK )
extern
double
hypot
();
/* Workaround a stupid Motorola optimization if one
of x or y is 0.0 and the other is negative! */
#ifdef __STDC__
static
__inline__
double
fake_hypot
(
double
x
,
double
y
)
#else
static
__inline__
double
fake_hypot
(
x
,
y
)
double
x
,
y
;
#endif
{
return
fabs
(
hypot
(
x
,
y
));
}
#define hypot fake_hypot
#endif
/* M88K_BAD_HYPOT_OPT_CHECK */
#if defined( MATH_EXCEPTION_CHECK )
typedef
struct
exception
t_math_exception
;
#endif
/* MATH_EXCEPTION_CHECK */
...
...
gcc/fixinc/tests/base/stdlib.h
View file @
b0588013
...
...
@@ -9,13 +9,6 @@
#if defined( ARM_WCHAR_CHECK )
# ifndef _GCC_WCHAR_T
/* we don't have wchar_t yet, ... */
# define _GCC_WCHAR_T short
# endif
/* __wchar_t */
#endif
/* ARM_WCHAR_CHECK */
#if defined( HPUX11_ABS_CHECK )
#if !defined(_MATH_INCLUDED) || defined(__GNUG__)
#endif
/* HPUX11_ABS_CHECK */
...
...
@@ -28,13 +21,6 @@ extern void exit(void*);
#endif
/* INT_ABORT_FREE_AND_EXIT_CHECK */
#if defined( NEWS_OS_RECURSION_CHECK )
#ifdef BOGUS_RECURSION
#include <stdlib.h>
#endif
#endif
/* NEWS_OS_RECURSION_CHECK */
#if defined( SVR4_GETCWD_CHECK )
extern
char
*
getcwd
(
char
*
,
size_t
);
#endif
/* SVR4_GETCWD_CHECK */
...
...
gcc/fixinc/tests/base/sys/byteorder.h
deleted
100644 → 0
View file @
68ee6df6
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/sys/byteorder.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#ifndef _SYS_BYTEORDER_H
#define _SYS_BYTEORDER_H
/* Functions to convert `short' and `long' quantities from host byte order
to (internet) network byte order (i.e. big-endian).
Written by Ron Guilmette (rfg@ncd.com).
This isn't actually used by GCC. It is installed by fixinc.svr4.
For big-endian machines these functions are essentially no-ops.
For little-endian machines, we define the functions using specialized
asm sequences in cases where doing so yields better code (e.g. i386). */
#if !defined (__GNUC__) && !defined (__GNUG__)
#error You lose! This file is only useful with GNU compilers.
#endif
#ifndef __BYTE_ORDER__
/* Byte order defines. These are as defined on UnixWare 1.1, but with
double underscores added at the front and back. */
#define __LITTLE_ENDIAN__ 1234
#define __BIG_ENDIAN__ 4321
#define __PDP_ENDIAN__ 3412
#endif
#ifdef __STDC__
static
__inline__
unsigned
long
htonl
(
unsigned
long
);
static
__inline__
unsigned
short
htons
(
unsigned
int
);
static
__inline__
unsigned
long
ntohl
(
unsigned
long
);
static
__inline__
unsigned
short
ntohs
(
unsigned
int
);
#endif
/* defined (__STDC__) */
#if defined (__i386__)
#ifndef __BYTE_ORDER__
#define __BYTE_ORDER__ __LITTLE_ENDIAN__
#endif
/* Convert a host long to a network long. */
/* We must use a new-style function definition, so that this will also
be valid for C++. */
static
__inline__
unsigned
long
htonl
(
unsigned
long
__arg
)
{
register
unsigned
long
__result
;
__asm__
(
"xchg%B0 %b0,%h0
ror%L0 $16,%0
xchg%B0 %b0,%h0"
:
"=q"
(
__result
)
:
"0"
(
__arg
));
return
__result
;
}
/* Convert a host short to a network short. */
static
__inline__
unsigned
short
htons
(
unsigned
int
__arg
)
{
register
unsigned
short
__result
;
__asm__
(
"xchg%B0 %b0,%h0"
:
"=q"
(
__result
)
:
"0"
(
__arg
));
return
__result
;
}
#elif ((defined (__i860__) && !defined (__i860_big_endian__)) \
|| defined (__ns32k__) || defined (__vax__) \
|| defined (__spur__) || defined (__arm__))
#ifndef __BYTE_ORDER__
#define __BYTE_ORDER__ __LITTLE_ENDIAN__
#endif
/* For other little-endian machines, using C code is just as efficient as
using assembly code. */
/* Convert a host long to a network long. */
static
__inline__
unsigned
long
htonl
(
unsigned
long
__arg
)
{
register
unsigned
long
__result
;
__result
=
(
__arg
>>
24
)
&
0x000000ff
;
__result
|=
(
__arg
>>
8
)
&
0x0000ff00
;
__result
|=
(
__arg
<<
8
)
&
0x00ff0000
;
__result
|=
(
__arg
<<
24
)
&
0xff000000
;
return
__result
;
}
/* Convert a host short to a network short. */
static
__inline__
unsigned
short
htons
(
unsigned
int
__arg
)
{
register
unsigned
short
__result
;
__result
=
(
__arg
<<
8
)
&
0xff00
;
__result
|=
(
__arg
>>
8
)
&
0x00ff
;
return
__result
;
}
#else
/* must be a big-endian machine */
#ifndef __BYTE_ORDER__
#define __BYTE_ORDER__ __BIG_ENDIAN__
#endif
/* Convert a host long to a network long. */
static
__inline__
unsigned
long
htonl
(
unsigned
long
__arg
)
{
return
__arg
;
}
/* Convert a host short to a network short. */
static
__inline__
unsigned
short
htons
(
unsigned
int
__arg
)
{
return
__arg
;
}
#endif
/* big-endian */
/* Convert a network long to a host long. */
static
__inline__
unsigned
long
ntohl
(
unsigned
long
__arg
)
{
return
htonl
(
__arg
);
}
/* Convert a network short to a host short. */
static
__inline__
unsigned
short
ntohs
(
unsigned
int
__arg
)
{
return
htons
(
__arg
);
}
#endif
gcc/fixinc/tests/base/sys/param.h
View file @
b0588013
...
...
@@ -9,12 +9,6 @@
#if defined( AUX_ASM_CHECK )
#if !defined(NOINLINE) && !defined(__GNUC__)
/* ain't got no inline, so we got it */
#endif
/* NOINLINE */
#endif
/* AUX_ASM_CHECK */
#if defined( HPUX_MAXINT_CHECK )
#ifndef MAXINT
#define MAXINT 0x7FFFFFFF
...
...
gcc/fixinc/tests/base/sys/stat.h
View file @
b0588013
...
...
@@ -9,11 +9,6 @@
#if defined( M88K_BAD_S_IF_CHECK )
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
/* is regular? */
#endif
/* M88K_BAD_S_IF_CHECK */
#if defined( RS6000_FCHMOD_CHECK )
extern
int
fchmod
(
int
,
mode_t
);
#endif
/* RS6000_FCHMOD_CHECK */
...
...
gcc/fixinc/tests/base/time.h
View file @
b0588013
...
...
@@ -7,14 +7,6 @@
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#ifndef FIXINC_M88K_MULTI_INCL_CHECK
#define FIXINC_M88K_MULTI_INCL_CHECK 1
#if defined( M88K_MULTI_INCL_CHECK )
#endif
/* M88K_MULTI_INCL_CHECK */
#if defined( VXWORKS_NEEDS_VXTYPES_CHECK )
...
...
@@ -33,5 +25,3 @@ typedef void (*__gcc_VOIDFUNCPTR) ();
#endif
#define VOIDFUNCPTR __gcc_VOIDFUNCPTR
#endif
/* VXWORKS_TIME_CHECK */
#endif
/* FIXINC_M88K_MULTI_INCL_CHECK */
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