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
97c2a83f
Commit
97c2a83f
authored
Jan 13, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of function prototypes.
From-SVN: r8749
parent
e72260ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
gcc/config/1750a/1750a.c
+20
-8
gcc/config/1750a/1750a.h
+4
-3
No files found.
gcc/config/1750a/1750a.c
View file @
97c2a83f
/* Subroutines for insn-output.c for MIL-STD-1750.
Copyright (C) 1994 Free Software Foundation, Inc.
Copyright (C) 1994
, 1995
Free Software Foundation, Inc.
Contributed by O.M.Kellogg, DASA (okellogg@salyko.cube.net).
This file is part of GNU CC.
...
...
@@ -21,6 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef FILE
#include <stdio.h>
#endif
#include <string.h>
#define __datalbl
#include "config.h"
...
...
@@ -195,7 +196,8 @@ float_label (code, value)
char
*
movcnt_regno_adjust
(
rtx
*
op
)
movcnt_regno_adjust
(
op
)
rtx
*
op
;
{
static
char
outstr
[
40
];
int
cntreg
=
REGNO
(
op
[
2
]),
cntreg_1750
=
REGNO
(
op
[
0
])
+
1
;
...
...
@@ -216,7 +218,9 @@ movcnt_regno_adjust (rtx * op)
}
char
*
mod_regno_adjust
(
char
*
instr
,
rtx
*
op
)
mod_regno_adjust
(
instr
,
op
)
char
*
instr
;
rtx
*
op
;
{
static
char
outstr
[
40
];
char
*
r
=
(
!
strncmp
(
instr
,
"dvr"
,
3
)
?
"r"
:
""
);
...
...
@@ -235,7 +239,8 @@ mod_regno_adjust (char *instr, rtx * op)
Check if op is a valid memory operand for 1750A arith./logic (non-move)
instructions. */
int
memop_valid
(
register
rtx
op
)
memop_valid
(
op
)
rtx
op
;
{
if
(
GET_MODE
(
op
)
!=
Pmode
&&
GET_MODE
(
op
)
!=
VOIDmode
)
return
0
;
...
...
@@ -267,7 +272,9 @@ memop_valid (register rtx op)
/* extra predicate for recog: */
int
nonindirect_operand
(
register
rtx
op
,
enum
machine_mode
mode
)
nonindirect_operand
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
int
retval
;
...
...
@@ -287,7 +294,9 @@ nonindirect_operand (register rtx op, enum machine_mode mode)
/* predicate for the STC instruction: */
int
small_nonneg_const
(
register
rtx
op
,
enum
machine_mode
mode
)
small_nonneg_const
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
if
(
GET_CODE
(
op
)
==
CONST_INT
&&
INTVAL
(
op
)
>=
0
&&
INTVAL
(
op
)
<=
15
)
return
1
;
...
...
@@ -298,7 +307,8 @@ small_nonneg_const (register rtx op, enum machine_mode mode)
or as a "Branch Conditional": */
int
find_jmplbl
(
int
labelnum
)
find_jmplbl
(
labelnum
)
int
labelnum
;
{
int
i
,
found
=
0
;
...
...
@@ -314,7 +324,9 @@ find_jmplbl (int labelnum)
}
char
*
branch_or_jump
(
char
*
condition
,
int
targetlabel_number
)
branch_or_jump
(
condition
,
targetlabel_number
)
char
*
condition
;
int
targetlabel_number
;
{
static
char
buf
[
30
];
int
index
;
...
...
gcc/config/1750a/1750a.h
View file @
97c2a83f
/* Definitions of target machine for GNU compiler.
Copyright (C) 1994 Free Software Foundation, Inc.
Copyright (C) 1994
, 1995
Free Software Foundation, Inc.
Contributed by O.M.Kellogg, DASA (okellogg@salyko.cube.net).
This file is part of GNU CC.
...
...
@@ -934,9 +934,10 @@ enum reg_class { NO_REGS, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLASSES };
void const_section() \
{ \
fprintf(asm_out_file,"\tkonst\n"); \
current_section = Konst;
\
current_section = Konst; \
} \
check_section(enum section sect) \
check_section(sect) \
enum section sect; \
{ \
if (current_section != sect) { \
fprintf(asm_out_file,"\t%s\n",sectname[(int)sect]); \
...
...
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