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
bb51178f
Commit
bb51178f
authored
Nov 18, 1999
by
Nick Clifton
Committed by
Nick Clifton
Nov 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix command line parsing to report unrecognised options.
From-SVN: r30574
parent
7f7df311
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
gcc/ChangeLog
+7
-0
gcc/cppinit.c
+4
-0
gcc/toplev.c
+1
-1
No files found.
gcc/ChangeLog
View file @
bb51178f
1999
-
11
-
18
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
toplev
.
c
(
main
)
:
Correctly
detect
an
unrecognised
option
.
*
cppinit
.
c
(
cpp_handle_option
)
:
Do
not
claim
to
have
consumed
a
-
f
option
if
it
has
not
been
recognised
.
Thu
Nov
18
00
:
59
:
11
1999
Michael
Gschwind
<
mikeg
@alagoas
.
watson
.
ibm
.
com
>
Thu
Nov
18
00
:
59
:
11
1999
Michael
Gschwind
<
mikeg
@alagoas
.
watson
.
ibm
.
com
>
*
basic
-
block
.
h
(
update_life_extent
)
:
Remove
trailing
comma
on
*
basic
-
block
.
h
(
update_life_extent
)
:
Remove
trailing
comma
on
...
...
gcc/cppinit.c
View file @
bb51178f
...
@@ -1105,6 +1105,10 @@ cpp_handle_option (pfile, argc, argv)
...
@@ -1105,6 +1105,10 @@ cpp_handle_option (pfile, argc, argv)
opts
->
preprocessed
=
1
;
opts
->
preprocessed
=
1
;
else
if
(
!
strcmp
(
argv
[
i
],
"-fno-preprocessed"
))
else
if
(
!
strcmp
(
argv
[
i
],
"-fno-preprocessed"
))
opts
->
preprocessed
=
0
;
opts
->
preprocessed
=
0
;
else
{
return
i
;
}
break
;
break
;
case
'I'
:
/* Add directory to path for includes. */
case
'I'
:
/* Add directory to path for includes. */
...
...
gcc/toplev.c
View file @
bb51178f
...
@@ -5459,7 +5459,7 @@ main (argc, argv)
...
@@ -5459,7 +5459,7 @@ main (argc, argv)
break
;
break
;
}
}
if
(
option
)
if
(
j
!=
NUM_ELEM
(
documented_lang_options
)
)
{
{
if
(
extra_warnings
)
if
(
extra_warnings
)
{
{
...
...
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