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
75dcd8fe
Commit
75dcd8fe
authored
Sep 11, 2001
by
Michael Meissner
Committed by
Michael Meissner
Sep 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not allow -mgp32 -mfp64; Fix int/long printf warning
From-SVN: r45533
parent
fe5de117
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
3 deletions
+43
-3
gcc/ChangeLog
+16
-0
gcc/config/mips/elf.h
+4
-1
gcc/config/mips/elf64.h
+4
-1
gcc/config/mips/mips.h
+15
-0
gcc/config/mips/netbsd.h
+4
-1
No files found.
gcc/ChangeLog
View file @
75dcd8fe
2001
-
09
-
11
Michael
Meissner
<
meissner
@redhat
.
com
>
*
config
/
mips
/
mips
.
h
(
CC1_SPEC
)
:
If
-
mgp32
default
to
-
mfp32
,
and
give
an
error
if
the
user
uses
-
mfp32
.
(
CPP_FPR_SPEC
)
:
Define
__mips_fpr
to
be
32
or
64
depending
on
the
default
options
.
(
CPP_SPEC
)
:
Define
__mips_fpr
to
be
32
or
64
,
depending
on
the
floating
point
register
size
.
(
EXTRA_SPECS
)
:
Add
CPP_FPR_SPEC
.
*
config
/
mips
/
netbsd
.
h
(
ASM_FINISH_DECLARE_OBJECT
)
:
Use
HOST_WIDE_INT_PRINT_DEC
to
properly
print
the
result
of
int_size_in_bytes
.
*
config
/
mips
/
elf
.
h
(
ASM_FINISH_DECLARE_OBJECT
)
:
Ditto
.
*
config
/
mips
/
elf64
.
h
(
ASM_FINISH_DECLARE_OBJECT
)
:
Ditto
.
2001
-
09
-
11
Hans
-
Peter
Nilsson
<
hp
@axis
.
com
>
*
dbxout
.
c
(
dbxout_parms
)
:
Fix
typo
in
comment
.
...
...
gcc/config/mips/elf.h
View file @
75dcd8fe
...
...
@@ -174,7 +174,10 @@ do { \
size_directive_output = 1; \
fprintf (FILE, "%s", SIZE_ASM_OP); \
assemble_name (FILE, name); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, ","); \
fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, \
int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, "\n"); \
} \
} while (0)
...
...
gcc/config/mips/elf64.h
View file @
75dcd8fe
...
...
@@ -153,7 +153,10 @@ do { \
size_directive_output = 1; \
fprintf (FILE, "%s", SIZE_ASM_OP); \
assemble_name (FILE, name); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, ","); \
fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, \
int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, "\n"); \
} \
} while (0)
...
...
gcc/config/mips/mips.h
View file @
75dcd8fe
...
...
@@ -952,6 +952,9 @@ while (0)
#endif
/* CC1_SPEC is the set of arguments to pass to the compiler proper. */
/* Note, we will need to adjust the following if we ever find a MIPS variant
that has 32-bit GPRs and 64-bit FPRs as well as fix all of the reload bugs
that show up in this case. */
#ifndef CC1_SPEC
#define CC1_SPEC "\
...
...
@@ -962,6 +965,7 @@ while (0)
%{mfp64:%{msingle-float:%emay not use both -mfp64 and -msingle-float}} \
%{mfp64:%{m4650:%emay not use both -mfp64 and -m4650}} \
%{mint64|mlong64|mlong32:-mexplicit-type-size }\
%{mgp32: %{mfp64:%emay not use both -mgp32 and -mfp64} %{!mfp32: -mfp32}} \
%{G*} %{EB:-meb} %{EL:-mel} %{EB:%{EL:%emay not use both -EB and -EL}} \
%{pic-none: -mno-half-pic} \
%{pic-lib: -mhalf-pic} \
...
...
@@ -999,6 +1003,15 @@ while (0)
#endif
#endif
/* Define appropriate macros for fpr register size. */
#ifndef CPP_FPR_SPEC
#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_FLOAT64)
#define CPP_FPR_SPEC "-D__mips_fpr=64"
#else
#define CPP_FPR_SPEC "-D__mips_fpr=32"
#endif
#endif
/* For C++ we need to ensure that _LANGUAGE_C_PLUS_PLUS is defined independent
of the source file extension. */
#undef CPLUSPLUS_CPP_SPEC
...
...
@@ -1017,6 +1030,7 @@ while (0)
%{mips3:-U__mips -D__mips=3 -D__mips64} \
%{mips4:-U__mips -D__mips=4 -D__mips64} \
%{mgp32:-U__mips64} %{mgp64:-D__mips64} \
%{mfp32:-D__mips_fpr=32} %{mfp64:-D__mips_fpr=64} %{!mfp32: %{!mfp64: %{mgp32:-D__mips_fpr=32} %{!mgp32: %(cpp_fpr_spec)}}} \
%{msingle-float:%{!msoft-float:-D__mips_single_float}} \
%{m4650:%{!msoft-float:-D__mips_single_float}} \
%{msoft-float:-D__mips_soft_float} \
...
...
@@ -1044,6 +1058,7 @@ while (0)
{ "subtarget_cpp_spec", SUBTARGET_CPP_SPEC }, \
{ "subtarget_cpp_size_spec", SUBTARGET_CPP_SIZE_SPEC }, \
{ "long_max_spec", LONG_MAX_SPEC }, \
{ "cpp_fpr_spec", CPP_FPR_SPEC }, \
{ "mips_as_asm_spec", MIPS_AS_ASM_SPEC }, \
{ "gas_asm_spec", GAS_ASM_SPEC }, \
{ "target_asm_spec", TARGET_ASM_SPEC }, \
...
...
gcc/config/mips/netbsd.h
View file @
75dcd8fe
...
...
@@ -175,7 +175,10 @@ do { \
size_directive_output = 1; \
fprintf (FILE, "%s", SIZE_ASM_OP); \
assemble_name (FILE, name); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, ","); \
fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, \
int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, "\n"); \
} \
} while (0)
...
...
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