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
9eff22bc
Commit
9eff22bc
authored
Jul 20, 2003
by
Lisa M. Goldstein
Committed by
Gerald Pfeifer
Jul 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/invoke.texi: Fixes to style, grammar and diction.
From-SVN: r69613
parent
6a6c0154
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
27 deletions
+31
-27
gcc/ChangeLog
+4
-0
gcc/doc/invoke.texi
+27
-27
No files found.
gcc/ChangeLog
View file @
9eff22bc
2003-07-20 Lisa M. Goldstein <opus@gnu.org>
* doc/invoke.texi: Fixes to style, grammar and diction.
2003-07-20 Roger Sayle <roger@eyesopen.com>
2003-07-20 Roger Sayle <roger@eyesopen.com>
* builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
* builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
...
...
gcc/doc/invoke.texi
View file @
9eff22bc
...
@@ -1593,14 +1593,14 @@ Instantiations of these templates may be mangled incorrectly.
...
@@ -1593,14 +1593,14 @@ Instantiations of these templates may be mangled incorrectly.
@item -Wctor-dtor-privacy @r{(C++ only)}
@item -Wctor-dtor-privacy @r{(C++ only)}
@opindex Wctor-dtor-privacy
@opindex Wctor-dtor-privacy
Warn when a class seems unusable
,
because all the constructors or
Warn when a class seems unusable because all the constructors or
destructors in
a class are private and the class has no friends
or
destructors in
that class are private, and it has neither friends n
or
public static member functions.
public static member functions.
@item -Wnon-virtual-dtor @r{(C++ only)}
@item -Wnon-virtual-dtor @r{(C++ only)}
@opindex Wnon-virtual-dtor
@opindex Wnon-virtual-dtor
Warn when a class
declares a non-virtual destructor that should probably
Warn when a class
appears to be polymorphic, thereby requiring a virtual
be virtual, because it looks like the class will be used polymorphically
.
destructor, yet it declares a non-virtual one
.
This warning is enabled by @option{-Wall}.
This warning is enabled by @option{-Wall}.
@item -Wreorder @r{(C++ only)}
@item -Wreorder @r{(C++ only)}
...
@@ -1618,9 +1618,9 @@ struct A @{
...
@@ -1618,9 +1618,9 @@ struct A @{
@};
@};
@end smallexample
@end smallexample
Here the compiler will warn that
the member initializers for @samp{i}
The compiler will rearrange
the member initializers for @samp{i}
and @samp{j}
will be rearranged to match the declaration order of the
and @samp{j}
to match the declaration order of the members, emitting
members
. This warning is enabled by @option{-Wall}.
a warning to that effect
. This warning is enabled by @option{-Wall}.
@end table
@end table
The following @option{-W@dots{}} options are not affected by @option{-Wall}.
The following @option{-W@dots{}} options are not affected by @option{-Wall}.
...
@@ -1650,8 +1650,8 @@ Item 23: Don't try to return a reference when you must return an object.
...
@@ -1650,8 +1650,8 @@ Item 23: Don't try to return a reference when you must return an object.
@end itemize
@end itemize
and about violations of the following style guidelines from Scott Meyers'
Also warn about violations of the following style guidelines from
@
cite
{
More
Effective
C
++}
book
:
Scott Meyers'
@
cite
{
More
Effective
C
++}
book
:
@
itemize
@
bullet
@
itemize
@
bullet
@
item
@
item
...
@@ -1663,8 +1663,8 @@ Item 7: Never overload @code{&&}, @code{||}, or @code{,}.
...
@@ -1663,8 +1663,8 @@ Item 7: Never overload @code{&&}, @code{||}, or @code{,}.
@
end
itemize
@
end
itemize
If
you
use
this
option
,
you
should
be
aware
that
the
standard
library
When
selecting
this
option
,
be
aware
that
the
standard
library
headers
do
not
obey
all
of
these
guidelines
;
you
can
use
@
samp
{
grep
-
v
}
headers
do
not
obey
all
of
these
guidelines
;
use
@
samp
{
grep
-
v
}
to
filter
out
those
warnings
.
to
filter
out
those
warnings
.
@
item
-
Wno
-
deprecated
@
r
{(
C
++
only
)}
@
item
-
Wno
-
deprecated
@
r
{(
C
++
only
)}
...
@@ -1674,7 +1674,7 @@ Do not warn about usage of deprecated features. @xref{Deprecated Features}.
...
@@ -1674,7 +1674,7 @@ Do not warn about usage of deprecated features. @xref{Deprecated Features}.
@
item
-
Wno
-
non
-
template
-
friend
@
r
{(
C
++
only
)}
@
item
-
Wno
-
non
-
template
-
friend
@
r
{(
C
++
only
)}
@
opindex
Wno
-
non
-
template
-
friend
@
opindex
Wno
-
non
-
template
-
friend
Disable
warnings
when
non
-
templatized
friend
functions
are
declared
Disable
warnings
when
non
-
templatized
friend
functions
are
declared
within
a
template
.
With
the
advent
of
explicit
template
specification
within
a
template
.
Since
the
advent
of
explicit
template
specification
support
in
G
++,
if
the
name
of
the
friend
is
an
unqualified
-
id
(
i
.
e
.,
support
in
G
++,
if
the
name
of
the
friend
is
an
unqualified
-
id
(
i
.
e
.,
@
samp
{
friend
foo
(
int
)}),
the
C
++
language
specification
demands
that
the
@
samp
{
friend
foo
(
int
)}),
the
C
++
language
specification
demands
that
the
friend
declare
or
define
an
ordinary
,
nontemplate
function
.
(
Section
friend
declare
or
define
an
ordinary
,
nontemplate
function
.
(
Section
...
@@ -1682,7 +1682,7 @@ friend declare or define an ordinary, nontemplate function. (Section
...
@@ -1682,7 +1682,7 @@ friend declare or define an ordinary, nontemplate function. (Section
could
be
interpreted
as
a
particular
specialization
of
a
templatized
could
be
interpreted
as
a
particular
specialization
of
a
templatized
function
.
Because
this
non
-
conforming
behavior
is
no
longer
the
default
function
.
Because
this
non
-
conforming
behavior
is
no
longer
the
default
behavior
for
G
++,
@
option
{-
Wnon
-
template
-
friend
}
allows
the
compiler
to
behavior
for
G
++,
@
option
{-
Wnon
-
template
-
friend
}
allows
the
compiler
to
check
existing
code
for
potential
trouble
spots
,
and
is
on
by
default
.
check
existing
code
for
potential
trouble
spots
and
is
on
by
default
.
This
new
compiler
behavior
can
be
turned
off
with
This
new
compiler
behavior
can
be
turned
off
with
@
option
{-
Wno
-
non
-
template
-
friend
}
which
keeps
the
conformant
compiler
code
@
option
{-
Wno
-
non
-
template
-
friend
}
which
keeps
the
conformant
compiler
code
but
disables
the
helpful
warning
.
but
disables
the
helpful
warning
.
...
@@ -1692,7 +1692,7 @@ but disables the helpful warning.
...
@@ -1692,7 +1692,7 @@ but disables the helpful warning.
Warn
if
an
old
-
style
(
C
-
style
)
cast
to
a
non
-
void
type
is
used
within
Warn
if
an
old
-
style
(
C
-
style
)
cast
to
a
non
-
void
type
is
used
within
a
C
++
program
.
The
new
-
style
casts
(@
samp
{
static_cast
},
a
C
++
program
.
The
new
-
style
casts
(@
samp
{
static_cast
},
@
samp
{
reinterpret_cast
},
and
@
samp
{
const_cast
})
are
less
vulnerable
to
@
samp
{
reinterpret_cast
},
and
@
samp
{
const_cast
})
are
less
vulnerable
to
unintended
effects
,
and
much
easier
to
grep
for
.
unintended
effects
and
much
easier
to
search
for
.
@
item
-
Woverloaded
-
virtual
@
r
{(
C
++
only
)}
@
item
-
Woverloaded
-
virtual
@
r
{(
C
++
only
)}
@
opindex
Woverloaded
-
virtual
@
opindex
Woverloaded
-
virtual
...
@@ -1712,7 +1712,7 @@ struct B: public A @{
...
@@ -1712,7 +1712,7 @@ struct B: public A @{
@
end
smallexample
@
end
smallexample
the
@
code
{
A
}
class
version
of
@
code
{
f
}
is
hidden
in
@
code
{
B
},
and
code
the
@
code
{
A
}
class
version
of
@
code
{
f
}
is
hidden
in
@
code
{
B
},
and
code
like
this
:
like
:
@
smallexample
@
smallexample
B
*
b
;
B
*
b
;
...
@@ -1729,7 +1729,7 @@ to a plain pointer.
...
@@ -1729,7 +1729,7 @@ to a plain pointer.
@
item
-
Wsign
-
promo
@
r
{(
C
++
only
)}
@
item
-
Wsign
-
promo
@
r
{(
C
++
only
)}
@
opindex
Wsign
-
promo
@
opindex
Wsign
-
promo
Warn
when
overload
resolution
chooses
a
promotion
from
unsigned
or
Warn
when
overload
resolution
chooses
a
promotion
from
unsigned
or
enumeral
type
to
a
signed
type
over
a
conversion
to
an
unsigned
type
of
enumeral
type
to
a
signed
type
,
over
a
conversion
to
an
unsigned
type
of
the
same
size
.
Previous
versions
of
G
++
would
try
to
preserve
the
same
size
.
Previous
versions
of
G
++
would
try
to
preserve
unsignedness
,
but
the
standard
mandates
the
current
behavior
.
unsignedness
,
but
the
standard
mandates
the
current
behavior
.
...
@@ -1764,7 +1764,7 @@ In this example, G++ will synthesize a default @samp{A& operator =
...
@@ -1764,7 +1764,7 @@ In this example, G++ will synthesize a default @samp{A& operator =
@cindex Objective-C options, command line
@cindex Objective-C options, command line
@cindex options, Objective-C
@cindex options, Objective-C
This section describes the command-line options that are only meaningful
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
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,
options regardless of what language your program is in. For example,
you might compile a file @code{some_class.m} like this:
you might compile a file @code{some_class.m} like this:
...
@@ -1773,7 +1773,7 @@ gcc -g -fgnu-runtime -O -c some_class.m
...
@@ -1773,7 +1773,7 @@ gcc -g -fgnu-runtime -O -c some_class.m
@end example
@end example
@noindent
@noindent
In this example,
only
@option{-fgnu-runtime} is an option meant only for
In this example, @option{-fgnu-runtime} is an option meant only for
Objective-C programs; you can use the other options with any language
Objective-C programs; you can use the other options with any language
supported by GCC@.
supported by GCC@.
...
@@ -1819,8 +1819,8 @@ and no warning is issued for them.
...
@@ -1819,8 +1819,8 @@ and no warning is issued for them.
Warn if multiple methods of different types for the same selector are
Warn if multiple methods of different types for the same selector are
found during compilation. The check is performed on the list of methods
found during compilation. The check is performed on the list of methods
in the final stage of compilation. Additionally, a check is performed
in the final stage of compilation. Additionally, a check is performed
that
for each selector appearing in a @code{@@selector(@dots{})}
for each selector appearing in a @code{@@selector(@dots{})}
expression, a
corresponding method with
that selector has been found
expression, a
nd a corresponding method for
that selector has been found
during compilation. Because these checks scan the method table only at
during compilation. Because these checks scan the method table only at
the end of compilation, these warnings are not produced if the final
the end of compilation, these warnings are not produced if the final
stage of compilation is not reached, for example because an error is
stage of compilation is not reached, for example because an error is
...
@@ -1831,13 +1831,13 @@ being used.
...
@@ -1831,13 +1831,13 @@ being used.
@opindex Wundeclared-selector
@opindex Wundeclared-selector
Warn if a @code{@@selector(@dots{})} expression referring to an
Warn if a @code{@@selector(@dots{})} expression referring to an
undeclared selector is found. A selector is considered undeclared if no
undeclared selector is found. A selector is considered undeclared if no
method with that name has been declared
(explicitly, in an
method with that name has been declared
before the
@code{@@
interface} or @code{@@protocol} declaration, or implicitly, i
n
@code{@@
selector(@dots{})} expression, either explicitly in a
n
an @code{@@implementation} section) before the
@code{@@interface} or @code{@@protocol} declaration, or implicitly in
@code{@@selector(@dots{})} express
ion. This option always performs its
an @code{@@implementation} sect
ion. This option always performs its
checks as soon as a @code{@@selector(@dots{})} expression is found
checks as soon as a @code{@@selector(@dots{})} expression is found
,
(
while @code{-Wselector} only performs its checks in the final stage of
while @code{-Wselector} only performs its checks in the final stage of
compilation
), and so additionally
enforces the coding style convention
compilation
. This also
enforces the coding style convention
that methods and selectors must be declared before being used.
that methods and selectors must be declared before being used.
@c not documented because only avail via -Wp
@c not documented because only avail via -Wp
...
...
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