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
3b39b94f
Commit
3b39b94f
authored
Apr 27, 1993
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base WORD_SWITCH_TAKES_ARG on new macro DEFAULT_WORD_SWITCH_TAKES_ARG
From-SVN: r4247
parent
ab034cfc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
31 deletions
+19
-31
gcc/config/i386/osfrose.h
+1
-4
gcc/config/m68k/sun2.h
+2
-4
gcc/config/m68k/sun3.h
+2
-4
gcc/config/mips/osfrose.h
+1
-4
gcc/config/nextstep.h
+1
-6
gcc/config/sparc/sparc.h
+2
-4
gcc/config/svr4.h
+3
-2
gcc/gcc.c
+7
-3
No files found.
gcc/config/i386/osfrose.h
View file @
3b39b94f
...
@@ -31,10 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -31,10 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef WORD_SWITCH_TAKES_ARG
#undef WORD_SWITCH_TAKES_ARG
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) || !strcmp (STR, "pic-names"))
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
|| !strcmp (STR, "pic-names"))
#define MASK_HALF_PIC 0x40000000
/* Mask for half-pic code */
#define MASK_HALF_PIC 0x40000000
/* Mask for half-pic code */
#define MASK_HALF_PIC_DEBUG 0x20000000
/* Debug flag */
#define MASK_HALF_PIC_DEBUG 0x20000000
/* Debug flag */
...
...
gcc/config/m68k/sun2.h
View file @
3b39b94f
...
@@ -48,10 +48,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -48,10 +48,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* These compiler options take an argument. We ignore -target for now. */
/* These compiler options take an argument. We ignore -target for now. */
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "target") || !strcmp (STR, "assert"))
|| !strcmp (STR, "imacros") || !strcmp (STR, "target") \
|| !strcmp (STR, "assert") || !strcmp (STR, "aux-info"))
/* Specify what to link with. */
/* Specify what to link with. */
...
...
gcc/config/m68k/sun3.h
View file @
3b39b94f
...
@@ -72,10 +72,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -72,10 +72,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* These compiler options take an argument. We ignore -target for now. */
/* These compiler options take an argument. We ignore -target for now. */
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "target") || !strcmp (STR, "assert"))
|| !strcmp (STR, "imacros") || !strcmp (STR, "target") \
|| !strcmp (STR, "assert") || !strcmp (STR, "aux-info"))
/* -m68000 requires special flags to the assembler. */
/* -m68000 requires special flags to the assembler. */
...
...
gcc/config/mips/osfrose.h
View file @
3b39b94f
...
@@ -27,10 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -27,10 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "halfpic.h"
#include "halfpic.h"
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) || !strcmp (STR, "pic-names"))
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
|| !strcmp (STR, "pic-names"))
#define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD"
#define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD"
...
...
gcc/config/nextstep.h
View file @
3b39b94f
...
@@ -89,11 +89,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -89,11 +89,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef WORD_SWITCH_TAKES_ARG
#undef WORD_SWITCH_TAKES_ARG
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Ttext") ? 1 : \
(DEFAULT_WORD_SWITCH_TAKES_ARG (str) ? 1 : \
!strcmp (STR, "Tdata") ? 1 : \
!strcmp (STR, "Tbss") ? 1 : \
!strcmp (STR, "include") ? 1 : \
!strcmp (STR, "imacros") ? 1 : \
!strcmp (STR, "segalign") ? 1 : \
!strcmp (STR, "segalign") ? 1 : \
!strcmp (STR, "seg1addr") ? 1 : \
!strcmp (STR, "seg1addr") ? 1 : \
!strcmp (STR, "segaddr") ? 2 : \
!strcmp (STR, "segaddr") ? 2 : \
...
@@ -103,7 +99,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -103,7 +99,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
!strcmp (STR, "sectalign") ? 3 : \
!strcmp (STR, "sectalign") ? 3 : \
!strcmp (STR, "segcreate") ? 3 : \
!strcmp (STR, "segcreate") ? 3 : \
!strcmp (STR, "sectorder") ? 3 : \
!strcmp (STR, "sectorder") ? 3 : \
!strcmp (STR, "aux-info") ? 1 : \
!strcmp (STR, "siff-mask") ? 1 : \
!strcmp (STR, "siff-mask") ? 1 : \
!strcmp (STR, "siff-filter") ? 1 : \
!strcmp (STR, "siff-filter") ? 1 : \
!strcmp (STR, "siff-warning") ? 1 : \
!strcmp (STR, "siff-warning") ? 1 : \
...
...
gcc/config/sparc/sparc.h
View file @
3b39b94f
...
@@ -72,10 +72,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -72,10 +72,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* These compiler options take an argument. We ignore -target for now. */
/* These compiler options take an argument. We ignore -target for now. */
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "target") || !strcmp (STR, "assert"))
|| !strcmp (STR, "imacros") || !strcmp (STR, "target") \
|| !strcmp (STR, "assert") || !strcmp (STR, "aux-info"))
/* Names to predefine in the preprocessor for this target machine. */
/* Names to predefine in the preprocessor for this target machine. */
...
...
gcc/config/svr4.h
View file @
3b39b94f
...
@@ -69,8 +69,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
...
@@ -69,8 +69,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
there are no such switches except those implemented by GCC itself. */
there are no such switches except those implemented by GCC itself. */
#define WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "include") || !strcmp (STR, "imacros") \
(DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
|| !strcmp (STR, "aux-info"))
&& strcmp (STR, "Tdata") && strcmp (STR, "Ttext") \
&& strcmp (STR, "Tbss"))
/* You should redefine CPP_PREDEFINES in any file which includes this one.
/* You should redefine CPP_PREDEFINES in any file which includes this one.
The definition should be appropriate for the type of target system
The definition should be appropriate for the type of target system
...
...
gcc/gcc.c
View file @
3b39b94f
...
@@ -394,11 +394,15 @@ static char *switches_need_spaces = SWITCHES_NEED_SPACES;
...
@@ -394,11 +394,15 @@ static char *switches_need_spaces = SWITCHES_NEED_SPACES;
/* This defines which multi-letter switches take arguments. */
/* This defines which multi-letter switches take arguments. */
#ifndef WORD_SWITCH_TAKES_ARG
#define DEFAULT_WORD_SWITCH_TAKES_ARG(STR) \
#define WORD_SWITCH_TAKES_ARG(STR) \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
(!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
|| !strcmp (STR, "imacros") || !strcmp (STR, "aux-info"))
|| !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
|| !strcmp (STR, "idirafter") || !strcmp (STR, "iprefix") \
|| !strcmp (STR, "iwithprefix"))
#ifndef WORD_SWITCH_TAKES_ARG
#define WORD_SWITCH_TAKES_ARG(STR) DEFAULT_WORD_SWITCH_TAKES_ARG (STR)
#endif
#endif
/* Record the mapping from file suffixes for compilation specs. */
/* Record the mapping from file suffixes for compilation specs. */
...
...
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