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
a6e8021e
Commit
a6e8021e
authored
Apr 11, 1994
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix line number counting.
From-SVN: r7036
parent
058acefd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
gcc/scan.c
+5
-1
No files found.
gcc/scan.c
View file @
a6e8021e
...
@@ -220,7 +220,7 @@ get_token (fp, s)
...
@@ -220,7 +220,7 @@ get_token (fp, s)
c
=
get_token
(
fp
,
s
);
c
=
get_token
(
fp
,
s
);
if
(
c
==
INT_TOKEN
)
if
(
c
==
INT_TOKEN
)
{
{
source_lineno
=
atoi
(
s
->
base
)
;
source_lineno
=
atoi
(
s
->
base
)
-
1
;
/* '\n' will add 1 */
get_token
(
fp
,
&
source_filename
);
get_token
(
fp
,
&
source_filename
);
}
}
for
(;;)
for
(;;)
...
@@ -229,7 +229,11 @@ get_token (fp, s)
...
@@ -229,7 +229,11 @@ get_token (fp, s)
if
(
c
==
EOF
)
if
(
c
==
EOF
)
return
EOF
;
return
EOF
;
if
(
c
==
'\n'
)
if
(
c
==
'\n'
)
{
source_lineno
++
;
lineno
++
;
goto
retry
;
goto
retry
;
}
}
}
}
}
if
(
c
==
EOF
)
if
(
c
==
EOF
)
...
...
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