public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: IainS <developer@sandoe-acoustics.co.uk>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Cc: "Joseph S. Myers" <joseph@codesourcery.com>,
	       Mike Stump <mikestump@comcast.net>
Subject: [Patch, Darwin + doc] alias mconstant-cfstrings to fconstant-cfstrings and document the flag.
Date: Mon, 14 Feb 2011 17:08:00 -0000	[thread overview]
Message-ID: <B4F496F4-F31D-41D2-8942-1F0AEFBD7BBF@sandoe-acoustics.co.uk> (raw)

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

             reply	other threads:[~2011-02-14 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14 17:08 IainS [this message]
2011-02-15  5:51 ` Mike Stump

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B4F496F4-F31D-41D2-8942-1F0AEFBD7BBF@sandoe-acoustics.co.uk \
    --to=developer@sandoe-acoustics.co.uk \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=mikestump@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).