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
88d92ca5
Commit
88d92ca5
authored
May 22, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1051
parent
2bae939e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gcc/c-lex.c
+5
-2
No files found.
gcc/c-lex.c
View file @
88d92ca5
...
@@ -1446,10 +1446,10 @@ yylex ()
...
@@ -1446,10 +1446,10 @@ yylex ()
warn
=
1
;
warn
=
1
;
}
}
if
(
warn
)
if
(
warn
)
warning
(
"integer constant out of range"
);
pedwarn
(
"integer constant out of range"
);
}
}
else
if
(
overflow
)
else
if
(
overflow
)
warning
(
"integer constant larger than compiler can handle"
);
pedwarn
(
"integer constant larger than compiler can handle"
);
/* If it overflowed our internal buffer, then make it unsigned.
/* If it overflowed our internal buffer, then make it unsigned.
We can't distinguish based on the tree node because
We can't distinguish based on the tree node because
...
@@ -1602,6 +1602,9 @@ yylex ()
...
@@ -1602,6 +1602,9 @@ yylex ()
}
}
#endif
#endif
if
(
!
int_fits_type_p
(
yylval
.
ttype
,
type
))
pedwarn
(
"integer constant out of range"
);
TREE_TYPE
(
yylval
.
ttype
)
=
type
;
TREE_TYPE
(
yylval
.
ttype
)
=
type
;
*
p
=
0
;
*
p
=
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