public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, Darwin + doc] alias mconstant-cfstrings to fconstant-cfstrings and document the flag.
@ 2011-02-14 17:08 IainS
  2011-02-15  5:51 ` Mike Stump
  0 siblings, 1 reply; 2+ messages in thread
From: IainS @ 2011-02-14 17:08 UTC (permalink / raw)
  To: GCC Patches; +Cc: Joseph S. Myers, Mike Stump

The Apple system tools expect the "-mconstant-cfstrings" to be "- 
fconstant-cfstrings".

the patch below aliases this, for compatibility and provides an entry  
in invoke.texi

OK for trunk?
Iain


Index: gcc/config/darwin.opt
===================================================================
--- gcc/config/darwin.opt	(revision 170138)
+++ gcc/config/darwin.opt	(working copy)
@@ -64,6 +64,9 @@ Driver Alias(Zdynamiclib)
  exported_symbols_list
  Driver Separate Alias(Zexported_symbols_list)

+fconstant-cfstrings
+Driver Alias(mconstant-cfstrings)
+
  filelist
  Driver RejectNegative Separate

Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 170138)
+++ gcc/doc/invoke.texi	(working copy)
@@ -510,7 +510,7 @@ Objective-C and Objective-C++ Dialects}.
  -dead_strip @gol
  -dependency-file  -dylib_file  -dylinker_install_name @gol
  -dynamic  -dynamiclib  -exported_symbols_list @gol
--filelist  -flat_namespace  -force_cpusubtype_ALL @gol
+-fconstant-cfstrings -filelist  -flat_namespace  - 
force_cpusubtype_ALL @gol
  -force_flat_namespace  -headerpad_max_install_names @gol
  -iframework @gol
  -image_base  -init  -install_name  -keep_private_externs @gol
@@ -10811,6 +10811,14 @@ for executables, @file{ld}, will quietly give  
the
  restrictive subtype of any of its input files.

  @table @gcctabopt
+@item -fconstant-cfstrings
+@opindex fconstant-cfstrings
+Enable the automatic creation of a CoreFoundation-type constant string
+whenever a special builtin @code{__builtin__CFStringMakeConstantString}
+is called on a literal string.  This will also override the
+@option{-fconstant-string-class} setting and cause @code{@@"@dots{}"}
+literals to be laid out as constant CoreFoundation strings.
+
  @item -F@var{dir}
  @opindex F
  Add the framework directory @var{dir} to the head of the list of

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch, Darwin + doc] alias mconstant-cfstrings to fconstant-cfstrings and document the flag.
  2011-02-14 17:08 [Patch, Darwin + doc] alias mconstant-cfstrings to fconstant-cfstrings and document the flag IainS
@ 2011-02-15  5:51 ` Mike Stump
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2011-02-15  5:51 UTC (permalink / raw)
  To: IainS; +Cc: GCC Patches, Joseph S. Myers

On Feb 14, 2011, at 9:05 AM, IainS wrote:
> The Apple system tools expect the "-mconstant-cfstrings" to be "-fconstant-cfstrings".
> 
> the patch below aliases this, for compatibility and provides an entry in invoke.texi
> 
> OK for trunk?

Ok.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-15  3:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 17:08 [Patch, Darwin + doc] alias mconstant-cfstrings to fconstant-cfstrings and document the flag IainS
2011-02-15  5:51 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).