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
17a2962c
Commit
17a2962c
authored
29 years ago
by
Stan Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(symbolic_operand) Put relocatable pic constants in data
From-SVN: r9536
parent
60678486
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
gcc/config/m88k/m88k.c
+31
-3
No files found.
gcc/config/m88k/m88k.c
View file @
17a2962c
/* Subroutines for insn-output.c for Motorola 88000.
Copyright (C) 1988,
1989, 1990, 1991, 1994
Free Software Foundation, Inc.
Copyright (C) 1988,
92, 93, 94, 1995
Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@mcc.com)
Enhanced by Michael Meissner (meissner@osf.org)
Version 2 port by Tom Wood (twood@pets.sps.mot.com)
Currently maintained by (gcc@dg-rtp.dg.com)
This file is part of GNU CC.
...
...
@@ -3094,3 +3093,32 @@ pic_address_needs_scratch (x)
return
0
;
}
/* Returns 1 if OP is either a symbol reference or a sum of a symbol
reference and a constant. */
int
symbolic_operand
(
op
,
mode
)
register
rtx
op
;
enum
machine_mode
mode
;
{
switch
(
GET_CODE
(
op
))
{
case
SYMBOL_REF
:
case
LABEL_REF
:
return
1
;
case
CONST
:
op
=
XEXP
(
op
,
0
);
return
((
GET_CODE
(
XEXP
(
op
,
0
))
==
SYMBOL_REF
||
GET_CODE
(
XEXP
(
op
,
0
))
==
LABEL_REF
)
&&
GET_CODE
(
XEXP
(
op
,
1
))
==
CONST_INT
);
/* ??? This clause seems to be irrelevant. */
case
CONST_DOUBLE
:
return
GET_MODE
(
op
)
==
mode
;
default
:
return
0
;
}
}
This diff is collapsed.
Click to expand it.
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