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
60de6385
Commit
60de6385
authored
Apr 30, 2001
by
Stan Shebs
Committed by
Stan Shebs
Apr 30, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* invoke.texi: Add a section documenting Objective-C options.
From-SVN: r41692
parent
2458d950
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
gcc/ChangeLog
+4
-0
gcc/invoke.texi
+62
-0
No files found.
gcc/ChangeLog
View file @
60de6385
2001
-
04
-
30
Stan
Shebs
<
shebs
@apple
.
com
>
*
invoke
.
texi
:
Add
a
section
documenting
Objective
-
C
options
.
2001
-
04
-
27
Andrew
Haley
<
aph
@cambridge
.
redhat
.
com
>
*
emit
-
rtl
.
c
(
try_split
)
:
Copy
EH
notes
to
sequence
.
...
...
gcc/invoke.texi
View file @
60de6385
...
...
@@ -115,6 +115,7 @@ only one of these two forms, whichever one is not the default.
* Invoking G++:: Compiling C++ programs.
* C Dialect Options:: Controlling the variant of C language compiled.
* C++ Dialect Options:: Variations on C++.
* Objective-C Dialect Options:: Variations on Objective-C.
* Language Independent Options:: Controlling how diagnostics should be
formatted.
* Warning Options:: How picky should the compiler be?
...
...
@@ -184,6 +185,13 @@ in the following sections.
-Woverloaded-virtual -Wno-pmf-conversions @gol
-Wsign-promo -Wsynth}
@item Objective-C Language Options
@xref{Objective-C Dialect Options,,Options Controlling Objective-C Dialect}.
@gccoptlist{
-fconstant-string-class=@var{class name} @gol
-fgnu-runtime -fnext-runtime -gen-decls
-Wno-protocol -Wselector}
@item Language Independent Options
@xref{Language Independent Options,,Options to Control Diagnostic Messages Formatting}.
@gccoptlist{
...
...
@@ -596,6 +604,7 @@ in the following sections.
or preprocessed source.
* C Dialect Options:: Controlling the variant of C language compiled.
* C++ Dialect Options:: Variations on C++.
* Objective-C Dialect Options:: Variations on Objective-C.
* Language Independent Options:: Controlling how diagnostics should be
formatted.
* Warning Options:: How picky should the compiler be?
...
...
@@ -1541,6 +1550,59 @@ In this example, g++ will synthesize a default @samp{A& operator =
(const A&);}, while cfront will use the user-defined @samp{operator =}.
@end table
@node Objective-C Dialect Options
@section Options Controlling Objective-C Dialect
@cindex compiler options, Objective-C
@cindex Objective-C options, command line
@cindex options, Objective-C
This section describes the command-line options that are only meaningful
for Objective-C programs; but you can also use most of the GNU compiler
options regardless of what language your program is in. For example,
you might compile a file @code{some_class.m} like this:
@example
gcc -g -fgnu-runtime -O -c some_class.m
@end example
@noindent
In this example, only @samp{-fgnu-runtime} is an option meant only for
Objective-C programs; you can use the other options with any language
supported by GCC.
Here is a list of options that are @emph{only} for compiling Objective-C
programs:
@table @gcctabopt
@item -fconstant-string-class=@var{class name}
Use @var{class name} as the name of the class to instantiate for each
literal string specified with the syntax @code{@@"..."}. The default
class name is @code{NXConstantString}.
@item -fgnu-runtime
Generate object code compatible with the standard GNU Objective-C
runtime. This is the default for most types of systems.
@item -fnext-runtime
Generate output compatible with the NeXT runtime. This is the default
for NeXT-based systems, including Darwin and Mac OS X.
@item -gen-decls
Dump interface declarations for all classes seen in the source file to a
file named @file{@var{sourcename}.decl}.
@item -Wno-protocol
Do not warn if methods required by a protocol are not implemented
in the class adopting it.
@item -Wselector
Warn if a selector has multiple methods of different types defined.
@c not documented because only avail via -Wp
@c @item -print-objc-runtime-info
@end table
@node Language Independent Options
@section Options to Control Diagnostic Messages Formatting
@cindex options to control diagnostics formatting
...
...
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