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
10501d8f
Commit
10501d8f
authored
Oct 17, 2000
by
Chandrakala Chavva
Committed by
Chandra Chavva
Oct 17, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new option --target-help.
From-SVN: r36910
parent
c330e9c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
5 deletions
+35
-5
gcc/ChangeLog
+10
-0
gcc/invoke.texi
+5
-1
gcc/toplev.c
+20
-4
No files found.
gcc/ChangeLog
View file @
10501d8f
2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
* gcc.c: New options --target-help.
(process_command): Added code to parse this new option.
* toplev.c (display_target_options): New function to support the
above new option.
* cppinit.c (new_pending_directive) : New option OPT_target__help.
(cpp_handle_option): Support this new option.
* invoke.texi: Added notes about --target-help option.
2000-10-17 Graham Stott <grahams@redhat.com>
* config/i386/i386.md (testqi_1): Add missing operand prefix
...
...
gcc/invoke.texi
View file @
10501d8f
...
...
@@ -90,7 +90,7 @@ in the following sections.
@item Overall Options
@xref{Overall Options,,Options Controlling the Kind of Output}.
@smallexample
-c -S -E -o @var{file} -pipe -pass-exit-codes -v --help -x @var{language}
-c -S -E -o @var{file} -pipe -pass-exit-codes -v --
target-help --
help -x @var{language}
@end smallexample
@item C Language Options
...
...
@@ -646,6 +646,10 @@ invoked by @code{gcc}, so that they can display the command line options
they accept. If the @code{-W} option is also specified then command
line options which have no documentation associated with them will also
be displayed.
@item --target-help
Print (on the standard output) a description of target specific command
line options for each tool.
@end table
@node Invoking G++
...
...
gcc/toplev.c
View file @
10501d8f
...
...
@@ -170,6 +170,7 @@ static void output_lang_identify PARAMS ((FILE *)) ATTRIBUTE_UNUSED;
#endif
static
void
compile_file
PARAMS
((
const
char
*
));
static
void
display_help
PARAMS
((
void
));
static
void
display_target_options
PARAMS
((
void
));
static
void
mark_file_stack
PARAMS
((
void
*
));
static
void
decode_d_option
PARAMS
((
const
char
*
));
...
...
@@ -3886,6 +3887,15 @@ display_help ()
printf
(
_
(
"
\n
There are undocumented %s specific options as well.
\n
"
),
lang
);
display_target_options
();
}
void
display_target_options
()
{
int
undoc
,
i
;
unsigned
long
;
if
(
ARRAY_SIZE
(
target_switches
)
>
1
#ifdef TARGET_OPTIONS
||
ARRAY_SIZE
(
target_options
)
>
1
...
...
@@ -3910,10 +3920,10 @@ display_help ()
undoc
=
1
;
if
(
extra_warnings
)
printf
(
_
(
" -m%-2
1.21
s [undocumented]
\n
"
),
option
);
printf
(
_
(
" -m%-2
3.23
s [undocumented]
\n
"
),
option
);
}
else
if
(
*
description
!=
0
)
doc
+=
printf
(
" -m%-2
1.21
s %s
\n
"
,
option
,
description
);
doc
+=
printf
(
" -m%-2
3.23
s %s
\n
"
,
option
,
description
);
}
#ifdef TARGET_OPTIONS
...
...
@@ -3929,10 +3939,10 @@ display_help ()
undoc
=
1
;
if
(
extra_warnings
)
printf
(
_
(
" -m%-2
1.21
s [undocumented]
\n
"
),
option
);
printf
(
_
(
" -m%-2
3.23
s [undocumented]
\n
"
),
option
);
}
else
if
(
*
description
!=
0
)
doc
+=
printf
(
" -m%-2
1.21
s %s
\n
"
,
option
,
description
);
doc
+=
printf
(
" -m%-2
3.23
s %s
\n
"
,
option
,
description
);
}
#endif
if
(
undoc
)
...
...
@@ -4307,6 +4317,12 @@ independent_decode_option (argc, argv)
exit
(
0
);
}
if
(
!
strcmp
(
arg
,
"-target-help"
))
{
display_target_options
();
exit
(
0
);
}
if
(
*
arg
==
'Y'
)
arg
++
;
...
...
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