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
5ce402b7
Commit
5ce402b7
authored
Nov 10, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't test, define or undef _VA_LIST_ on NET 2 systems. Don't include ansi.h.
From-SVN: r2736
parent
ca2ece1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
44 deletions
+14
-44
gcc/ginclude/stdarg.h
+7
-22
gcc/ginclude/varargs.h
+7
-22
No files found.
gcc/ginclude/stdarg.h
View file @
5ce402b7
...
@@ -105,36 +105,21 @@ typedef __gnuc_va_list va_list;
...
@@ -105,36 +105,21 @@ typedef __gnuc_va_list va_list;
#endif
/* _VA_LIST_ */
#endif
/* _VA_LIST_ */
#else
/* not __SVR4_2__ */
#else
/* not __SVR4_2__ */
/* On 4.3bsd-net2, make sure ansi.h is included, so we have
/* The macro _VA_LIST_ is the same thing used by this file in Ultrix.
one less case to deal with in the following. */
But on BSD NET2 we must not test or define or undef it.
#if defined (__BSD_NET2__) || defined (____386BSD____)
(Note that the comments in NET 2's ansi.h
#include <ansi.h>
are incorrect for _VA_LIST_--see stdio.h!) */
#endif
#if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____)
/* In 4.3bsd-net2, machine/ansi.h defines these symbols, which remain
defined as long as the corresponding type is *not* defined. */
#ifdef _ANSI_H_
#ifndef _VA_LIST_
#define _VA_LIST
#endif
#undef _VA_LIST_
#endif
/* _ANSI_H_ */
/* The macro _VA_LIST_ is the same thing used by this file in Ultrix. */
#ifndef _VA_LIST_
/* The macro _VA_LIST is used in SCO Unix 3.2. */
/* The macro _VA_LIST is used in SCO Unix 3.2. */
#ifndef _VA_LIST
#ifndef _VA_LIST
#if !(defined (__BSD_NET2__) || defined (____386BSD____))
#define _VA_LIST_
#define _VA_LIST_
#endif
#define _VA_LIST
#define _VA_LIST
typedef
__gnuc_va_list
va_list
;
typedef
__gnuc_va_list
va_list
;
#endif
/* not _VA_LIST */
#endif
/* not _VA_LIST */
#endif
/* not _VA_LIST_ */
#endif
/* not _VA_LIST_ */
/* On 4.3bsd-net2, leave _VA_LIST_ undef to indicate va_list is defined. */
#ifdef _ANSI_H_
#undef _VA_LIST_
#endif
#endif
/* not __SVR4_2__ */
#endif
/* not __SVR4_2__ */
#endif
/* _STDARG_H */
#endif
/* _STDARG_H */
...
...
gcc/ginclude/varargs.h
View file @
5ce402b7
...
@@ -119,26 +119,16 @@ typedef __gnuc_va_list va_list;
...
@@ -119,26 +119,16 @@ typedef __gnuc_va_list va_list;
#else
/* not __SVR4_2__ */
#else
/* not __SVR4_2__ */
/* On 4.3bsd-net2, make sure ansi.h is included, so we have
/* The macro _VA_LIST_ is the same thing used by this file in Ultrix.
one less case to deal with in the following. */
But on BSD NET2 we must not test or define or undef it.
#if defined (__BSD_NET2__) || defined (____386BSD____)
(Note that the comments in NET 2's ansi.h
#include <ansi.h>
are incorrect for _VA_LIST_--see stdio.h!) */
#endif
#if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____)
/* In 4.3bsd-net2, machine/ansi.h defines these symbols, which remain
defined as long as the corresponding type is *not* defined. */
#ifdef _ANSI_H_
#ifndef _VA_LIST_
#define _VA_LIST
#endif
#undef _VA_LIST_
#endif
/* _ANSI_H_ */
/* The macro _VA_LIST_ is the same thing used by this file in Ultrix. */
#ifndef _VA_LIST_
/* The macro _VA_LIST is used in SCO Unix 3.2. */
/* The macro _VA_LIST is used in SCO Unix 3.2. */
#ifndef _VA_LIST
#ifndef _VA_LIST
#if !(defined (__BSD_NET2__) || defined (____386BSD____))
#define _VA_LIST_
#define _VA_LIST_
#endif
#define _VA_LIST
#define _VA_LIST
typedef
__gnuc_va_list
va_list
;
typedef
__gnuc_va_list
va_list
;
#endif
/* not _VA_LIST */
#endif
/* not _VA_LIST */
...
@@ -146,11 +136,6 @@ typedef __gnuc_va_list va_list;
...
@@ -146,11 +136,6 @@ typedef __gnuc_va_list va_list;
#endif
/* not __SVR4_2__ */
#endif
/* not __SVR4_2__ */
/* On 4.3bsd-net2, leave _VA_LIST_ undef to indicate va_list is defined. */
#ifdef _ANSI_H_
#undef _VA_LIST_
#endif
/* The next BSD release (if there is one) wants this symbol to be
/* The next BSD release (if there is one) wants this symbol to be
undefined instead of _VA_LIST_. */
undefined instead of _VA_LIST_. */
#ifdef _BSD_VA_LIST
#ifdef _BSD_VA_LIST
...
...
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