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
f12021ed
Commit
f12021ed
authored
Aug 04, 2015
by
Anatoly Sokolov
Committed by
Anatoly Sokolov
Aug 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MOXIE] Hookize PRINT_OPERAND and PRINT_OPERAND_ADDRESS
From-SVN: r226594
parent
9cf0c420
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
gcc/ChangeLog
+10
-0
gcc/config/moxie/moxie-protos.h
+0
-2
gcc/config/moxie/moxie.c
+7
-2
gcc/config/moxie/moxie.h
+0
-6
No files found.
gcc/ChangeLog
View file @
f12021ed
2015-08-04 Anatoly Sokolov <aesok@post.ru>
* config/moxie/moxie.h (PRINT_OPERAND,
PRINT_OPERAND_ADDRESS): Remove macros.
* config/moxie/moxie-protos.h (moxie_print_operand,
moxie_print_operand_address): Remove declaration.
* config/moxie/moxie.c (TARGET_PRINT_OPERAND,
TARGET_PRINT_OPERAND_ADDRESS): Define.
(moxie_print_operand, moxie_print_operand_address): Make static.
2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
PR target/66731
PR target/66731
...
...
gcc/config/moxie/moxie-protos.h
View file @
f12021ed
...
@@ -20,6 +20,4 @@ along with GCC; see the file COPYING3. If not see
...
@@ -20,6 +20,4 @@ along with GCC; see the file COPYING3. If not see
extern
void
moxie_expand_prologue
(
void
);
extern
void
moxie_expand_prologue
(
void
);
extern
void
moxie_expand_epilogue
(
void
);
extern
void
moxie_expand_epilogue
(
void
);
extern
int
moxie_initial_elimination_offset
(
int
,
int
);
extern
int
moxie_initial_elimination_offset
(
int
,
int
);
extern
void
moxie_print_operand
(
FILE
*
,
rtx
,
int
);
extern
void
moxie_print_operand_address
(
FILE
*
,
rtx
);
extern
bool
moxie_offset_address_p
(
rtx
);
extern
bool
moxie_offset_address_p
(
rtx
);
gcc/config/moxie/moxie.c
View file @
f12021ed
...
@@ -128,7 +128,7 @@ moxie_operand_lossage (const char *msgid, rtx op)
...
@@ -128,7 +128,7 @@ moxie_operand_lossage (const char *msgid, rtx op)
/* The PRINT_OPERAND_ADDRESS worker. */
/* The PRINT_OPERAND_ADDRESS worker. */
void
static
void
moxie_print_operand_address
(
FILE
*
file
,
rtx
x
)
moxie_print_operand_address
(
FILE
*
file
,
rtx
x
)
{
{
switch
(
GET_CODE
(
x
))
switch
(
GET_CODE
(
x
))
...
@@ -175,7 +175,7 @@ moxie_print_operand_address (FILE *file, rtx x)
...
@@ -175,7 +175,7 @@ moxie_print_operand_address (FILE *file, rtx x)
/* The PRINT_OPERAND worker. */
/* The PRINT_OPERAND worker. */
void
static
void
moxie_print_operand
(
FILE
*
file
,
rtx
x
,
int
code
)
moxie_print_operand
(
FILE
*
file
,
rtx
x
,
int
code
)
{
{
rtx
operand
=
x
;
rtx
operand
=
x
;
...
@@ -679,6 +679,11 @@ moxie_legitimate_address_p (machine_mode mode ATTRIBUTE_UNUSED,
...
@@ -679,6 +679,11 @@ moxie_legitimate_address_p (machine_mode mode ATTRIBUTE_UNUSED,
#undef TARGET_OPTION_OVERRIDE
#undef TARGET_OPTION_OVERRIDE
#define TARGET_OPTION_OVERRIDE moxie_option_override
#define TARGET_OPTION_OVERRIDE moxie_option_override
#undef TARGET_PRINT_OPERAND
#define TARGET_PRINT_OPERAND moxie_print_operand
#undef TARGET_PRINT_OPERAND_ADDRESS
#define TARGET_PRINT_OPERAND_ADDRESS moxie_print_operand_address
struct
gcc_target
targetm
=
TARGET_INITIALIZER
;
struct
gcc_target
targetm
=
TARGET_INITIALIZER
;
#include "gt-moxie.h"
#include "gt-moxie.h"
gcc/config/moxie/moxie.h
View file @
f12021ed
...
@@ -212,12 +212,6 @@ enum reg_class
...
@@ -212,12 +212,6 @@ enum reg_class
#define ASM_OUTPUT_ALIGN(STREAM,POWER) \
#define ASM_OUTPUT_ALIGN(STREAM,POWER) \
fprintf (STREAM, "\t.p2align\t%d\n", POWER);
fprintf (STREAM, "\t.p2align\t%d\n", POWER);
/* A C compound statement to output to stdio stream STREAM the
assembler syntax for an instruction operand X. */
#define PRINT_OPERAND(STREAM, X, CODE) moxie_print_operand (STREAM, X, CODE)
#define PRINT_OPERAND_ADDRESS(STREAM ,X) moxie_print_operand_address (STREAM, X)
/* Output and Generation of Labels */
/* Output and Generation of Labels */
#define GLOBAL_ASM_OP "\t.global\t"
#define GLOBAL_ASM_OP "\t.global\t"
...
...
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