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
e53c841d
Commit
e53c841d
authored
32 years ago
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1041
parent
0eb9f40e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
gcc/c-lex.c
+9
-4
gcc/reload.c
+10
-6
No files found.
gcc/c-lex.c
View file @
e53c841d
...
...
@@ -1290,7 +1290,7 @@ yylex ()
set_float_handler
(
0
);
}
#ifdef ERANGE
if
(
errno
==
ERANGE
&&
!
flag_traditional
)
if
(
errno
==
ERANGE
&&
!
flag_traditional
&&
pedantic
)
{
char
*
p1
=
token_buffer
;
/* Check for "0.0" and variants;
...
...
@@ -1321,9 +1321,14 @@ yylex ()
{
if
(
f_seen
)
error
(
"two `f's in floating constant"
);
f_seen
=
1
;
type
=
float_type_node
;
value
=
REAL_VALUE_TRUNCATE
(
TYPE_MODE
(
type
),
value
);
else
{
f_seen
=
1
;
type
=
float_type_node
;
value
=
REAL_VALUE_TRUNCATE
(
TYPE_MODE
(
type
),
value
);
if
(
REAL_VALUE_ISINF
(
value
)
&&
pedantic
)
pedwarn
(
"floating point number exceeds range of `float'"
);
}
}
else
if
(
c
==
'l'
||
c
==
'L'
)
{
...
...
This diff is collapsed.
Click to expand it.
gcc/reload.c
View file @
e53c841d
...
...
@@ -1913,13 +1913,17 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
while
(
c
=
*
p
++
)
if
(
c
==
'%'
)
{
/* The last operand should not be marked commutative. This
problem is hard to detect, so make it obvious by calling
abort here. */
/* The last operand should not be marked commutative. */
if
(
i
==
noperands
-
1
)
abort
();
commutative
=
i
;
{
if
(
this_insn_is_asm
)
warning_for_asm
(
this_insn
,
"`%' constraint used with last operand"
);
else
abort
();
}
else
commutative
=
i
;
}
else
if
(
c
>=
'0'
&&
c
<=
'9'
)
{
...
...
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