OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c03465
)
(parse_number): Don't reject long long constants unless pedantic.
author
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Apr 1996 21:22:35 +0000
(21:22 +0000)
committer
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Apr 1996 21:22:35 +0000
(21:22 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11689
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/cexp.y
patch
|
blob
|
history
diff --git
a/gcc/cexp.y
b/gcc/cexp.y
index
470c45d
..
a890bf8
100644
(file)
--- a/
gcc/cexp.y
+++ b/
gcc/cexp.y
@@
-520,9
+520,9
@@
parse_number (olen)
while (1) {
if (c == 'l' || c == 'L')
{
- if (spec_long)
- yyerror ("t
wo
`l's in integer constant");
- spec_long
= 1
;
+ if (
!pedantic <
spec_long)
+ yyerror ("t
oo many
`l's in integer constant");
+ spec_long
++
;
}
else if (c == 'u' || c == 'U')
{