Options Controlling Objective-C Dialect - Red Hat ENTERPRISE LINUX 3 - USING GCC Using Instructions

Using the gnu compiler collection (gcc)
Hide thumbs Also See for ENTERPRISE LINUX 3 - USING GCC:
Table of Contents

Advertisement

Chapter 4. GCC Command Options
-Wno-pmf-conversions (C++ only)
Disable the diagnostic for converting a bound pointer to member function to a plain pointer.
-Wsign-promo (C++ only)
Warn when overload resolution chooses a promotion from unsigned or 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 unsignedness, but the standard mandates the current behavior.
-Wsynth (C++ only)
Warn when G++'s synthesis behavior does not match that of cfront. For instance:
struct A {
operator int ();
A& operator = (int);
};
main ()
{
A a,b;
a = b;
}
In this example, G++ will synthesize a default
will use the user-defined

4.6. Options Controlling Objective-C Dialect

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
gcc -g -fgnu-runtime -O -c some_class.m
In this example, only
use the other options with any language supported by GCC.
Here is a list of options that are only for compiling Objective-C programs:
-fconstant-string-class=
Use
class-name
syntax
. The default class name is
@"..."
-fgnu-runtime
Generate object code compatible with the standard GNU Objective-C runtime. This is the default
for most types of systems.
-fnext-runtime
Generate output compatible with the NeXT runtime. The macro
fined if (and only if) this option is used.
-gen-decls
Dump interface declarations for all classes seen in the source file to a file named
.decl
sourcename
operator =
some_class.m
is an option meant only for Objective-C programs; you can
-fgnu-runtime
class-name
as the name of the class to instantiate for each literal string specified with the
.
A& operator = (const A&);
.
like this:
NXConstantString
, while cfront
.
__NEXT_RUNTIME__
25
is prede-

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 3 - USING GCC and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Enterprise linux 3

Table of Contents