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
6eff269e
Commit
6eff269e
authored
Mar 31, 1993
by
Brendan Kehoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define CONSTANT_ADDRESS_P(X) to not use CONST_DOUBLE
From-SVN: r3954
parent
6ec87b9d
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
82 additions
and
29 deletions
+82
-29
gcc/config/convex/convex.h
+4
-1
gcc/config/elxsi/elxsi.h
+4
-1
gcc/config/fx80/fx80.h
+4
-1
gcc/config/gmicro/gmicro.h
+4
-1
gcc/config/i386/i386.h
+4
-1
gcc/config/i386/osfrose.h
+3
-1
gcc/config/i860/i860.h
+4
-1
gcc/config/i960/i960.h
+4
-1
gcc/config/m68k/m68k.h
+4
-1
gcc/config/m88k/m88k.h
+4
-1
gcc/config/mips/mips.h
+5
-10
gcc/config/pa/pa.h
+6
-1
gcc/config/pyr/pyr.h
+4
-1
gcc/config/romp/romp.h
+4
-1
gcc/config/rs6000/rs6000.h
+4
-1
gcc/config/sparc/sparc.h
+4
-1
gcc/config/spur/spur.h
+4
-1
gcc/config/tahoe/tahoe.h
+4
-1
gcc/config/vax/vax.h
+4
-1
gcc/config/we32k/we32k.h
+4
-1
No files found.
gcc/config/convex/convex.h
View file @
6eff269e
...
@@ -582,7 +582,10 @@ enum reg_class {
...
@@ -582,7 +582,10 @@ enum reg_class {
/* 1 if X is an rtx for a constant that is a valid address. */
/* 1 if X is an rtx for a constant that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/elxsi/elxsi.h
View file @
6eff269e
...
@@ -522,7 +522,10 @@ enum reg_class { NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES };
...
@@ -522,7 +522,10 @@ enum reg_class { NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES };
/* 1 if X is an rtx for a constant that is a valid address. */
/* 1 if X is an rtx for a constant that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/fx80/fx80.h
View file @
6eff269e
...
@@ -653,7 +653,10 @@ extern enum reg_class regno_reg_class[];
...
@@ -653,7 +653,10 @@ extern enum reg_class regno_reg_class[];
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/gmicro/gmicro.h
View file @
6eff269e
...
@@ -918,7 +918,10 @@ extern enum reg_class regno_reg_class[];
...
@@ -918,7 +918,10 @@ extern enum reg_class regno_reg_class[];
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/i386/i386.h
View file @
6eff269e
...
@@ -934,7 +934,10 @@ do { \
...
@@ -934,7 +934,10 @@ do { \
#define MAX_REGS_PER_ADDRESS 2
#define MAX_REGS_PER_ADDRESS 2
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/i386/osfrose.h
View file @
6eff269e
...
@@ -144,7 +144,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -144,7 +144,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef CONSTANT_ADDRESS_P
#undef CONSTANT_ADDRESS_P
#define CONSTANT_ADDRESS_P(X) \
#define CONSTANT_ADDRESS_P(X) \
(CONSTANT_P (X) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))
((GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/i860/i860.h
View file @
6eff269e
...
@@ -693,7 +693,10 @@ struct cumulative_args { int ints, floats; };
...
@@ -693,7 +693,10 @@ struct cumulative_args { int ints, floats; };
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.
...
...
gcc/config/i960/i960.h
View file @
6eff269e
...
@@ -911,7 +911,10 @@ extern struct rtx_def *i960_function_arg ();
...
@@ -911,7 +911,10 @@ extern struct rtx_def *i960_function_arg ();
/* Maximum number of registers that can appear in a valid memory address. */
/* Maximum number of registers that can appear in a valid memory address. */
#define MAX_REGS_PER_ADDRESS 2
#define MAX_REGS_PER_ADDRESS 2
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* LEGITIMATE_CONSTANT_P is nonzero if the constant value X
/* LEGITIMATE_CONSTANT_P is nonzero if the constant value X
is a legitimate general operand.
is a legitimate general operand.
...
...
gcc/config/m68k/m68k.h
View file @
6eff269e
...
@@ -1047,7 +1047,10 @@ __transfer_from_trampoline () \
...
@@ -1047,7 +1047,10 @@ __transfer_from_trampoline () \
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/m88k/m88k.h
View file @
6eff269e
...
@@ -1253,7 +1253,10 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
...
@@ -1253,7 +1253,10 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
/* #define HAVE_PRE_INCREMENT */
/* #define HAVE_PRE_INCREMENT */
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) (CONSTANT_P (X))
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Maximum number of registers that can appear in a valid memory address. */
/* Maximum number of registers that can appear in a valid memory address. */
#define MAX_REGS_PER_ADDRESS 2
#define MAX_REGS_PER_ADDRESS 2
...
...
gcc/config/mips/mips.h
View file @
6eff269e
...
@@ -2181,17 +2181,12 @@ __enable_execute_stack (addr) \
...
@@ -2181,17 +2181,12 @@ __enable_execute_stack (addr) \
/* A C expression that is 1 if the RTX X is a constant which is a
/* A C expression that is 1 if the RTX X is a constant which is a
valid address. On most machines, this can be defined as
valid address. This is defined to be the same as `CONSTANT_P (X)',
`CONSTANT_P (X)', but a few machines are more restrictive in
but rejecting CONST_DOUBLE. */
which constant addresses are supported.
`CONSTANT_P' accepts integer-values expressions whose values are
not explicitly known, such as `symbol_ref', `label_ref', and
`high' expressions and `const' arithmetic expressions, in
addition to `const_int' and `const_double' expressions. */
#define CONSTANT_ADDRESS_P(X) \
#define CONSTANT_ADDRESS_P(X) \
(CONSTANT_P (X) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))
((GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH) && (!HALF_PIC_P () || !HALF_PIC_ADDRESS_P (X)))
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
...
...
gcc/config/pa/pa.h
View file @
6eff269e
...
@@ -1056,9 +1056,14 @@ extern union tree_node *current_function_decl;
...
@@ -1056,9 +1056,14 @@ extern union tree_node *current_function_decl;
/* Recognize any constant value that is a valid address except
/* Recognize any constant value that is a valid address except
for symbolic addresses. We get better CSE by rejecting them
for symbolic addresses. We get better CSE by rejecting them
here and allowing hppa_legitimize_address to break them up. */
here and allowing hppa_legitimize_address to break them up. We
use most of the constants accepted by CONSTANT_P, except CONST_DOUBLE. */
#define CONSTANT_ADDRESS_P(X) \
#define CONSTANT_ADDRESS_P(X) \
((GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH) && ! symbolic_expression_p (X))
(
CONSTANT_P
(
X
)
&&
!
symbolic_expression_p
(
X
))
(
CONSTANT_P
(
X
)
&&
!
symbolic_expression_p
(
X
))
/* Include all constant integers and constant doubles, but not
/* Include all constant integers and constant doubles, but not
...
...
gcc/config/pyr/pyr.h
View file @
6eff269e
...
@@ -829,7 +829,10 @@ extern int current_function_calls_alloca;
...
@@ -829,7 +829,10 @@ extern int current_function_calls_alloca;
/* 1 if X is an rtx for a constant that is a valid address. */
/* 1 if X is an rtx for a constant that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/romp/romp.h
View file @
6eff269e
...
@@ -947,7 +947,10 @@ struct rt_cargs {int gregs, fregs; };
...
@@ -947,7 +947,10 @@ struct rt_cargs {int gregs, fregs; };
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.
...
...
gcc/config/rs6000/rs6000.h
View file @
6eff269e
...
@@ -969,7 +969,10 @@ struct rs6000_args {int words, fregno, nargs_prototype; };
...
@@ -969,7 +969,10 @@ struct rs6000_args {int words, fregno, nargs_prototype; };
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.
...
...
gcc/config/sparc/sparc.h
View file @
6eff269e
...
@@ -1135,7 +1135,10 @@ extern struct rtx_def *sparc_builtin_saveregs ();
...
@@ -1135,7 +1135,10 @@ extern struct rtx_def *sparc_builtin_saveregs ();
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) (CONSTANT_P (X))
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
Anything can be made to work except floating point constants. */
Anything can be made to work except floating point constants. */
...
...
gcc/config/spur/spur.h
View file @
6eff269e
...
@@ -622,7 +622,10 @@ extern int current_function_pretend_args_size;
...
@@ -622,7 +622,10 @@ extern int current_function_pretend_args_size;
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/tahoe/tahoe.h
View file @
6eff269e
...
@@ -446,7 +446,10 @@ enum reg_class {NO_REGS,GENERAL_REGS,FPP_REG,ALL_REGS,LIM_REG_CLASSES};
...
@@ -446,7 +446,10 @@ enum reg_class {NO_REGS,GENERAL_REGS,FPP_REG,ALL_REGS,LIM_REG_CLASSES};
/* constant addresses can be treated exactly the same as normal constants */
/* constant addresses can be treated exactly the same as normal constants */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* we can have as many as two regs in any given address */
/* we can have as many as two regs in any given address */
...
...
gcc/config/vax/vax.h
View file @
6eff269e
...
@@ -571,7 +571,10 @@ gen_rtx (PLUS, Pmode, frame, gen_rtx (CONST_INT, VOIDmode, 12))
...
@@ -571,7 +571,10 @@ gen_rtx (PLUS, Pmode, frame, gen_rtx (CONST_INT, VOIDmode, 12))
/* 1 if X is an rtx for a constant that is a valid address. */
/* 1 if X is an rtx for a constant that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
gcc/config/we32k/we32k.h
View file @
6eff269e
...
@@ -533,7 +533,10 @@ enum reg_class { NO_REGS, GENERAL_REGS,
...
@@ -533,7 +533,10 @@ enum reg_class { NO_REGS, GENERAL_REGS,
/* Recognize any constant value that is a valid address. */
/* Recognize any constant value that is a valid address. */
#define CONSTANT_ADDRESS_P(X) CONSTANT_P(X)
#define CONSTANT_ADDRESS_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST \
|| GET_CODE (X) == HIGH)
/* Nonzero if the constant value X is a legitimate general operand.
/* Nonzero if the constant value X is a legitimate general operand.
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
...
...
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