From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4157 invoked by alias); 14 Feb 2011 17:06:00 -0000 Received: (qmail 4149 invoked by uid 22791); 14 Feb 2011 17:06:00 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from c2beaomr10.btconnect.com (HELO mail.btconnect.com) (213.123.26.188) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Feb 2011 17:05:55 +0000 Received: from host81-138-1-83.in-addr.btopenworld.com (EHLO thor.office) ([81.138.1.83]) by c2beaomr10.btconnect.com with ESMTP id BRS13268; Mon, 14 Feb 2011 17:05:50 +0000 (GMT) Message-Id: From: IainS To: GCC Patches Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: [Patch, Darwin + doc] alias mconstant-cfstrings to fconstant-cfstrings and document the flag. Date: Mon, 14 Feb 2011 17:08:00 -0000 Cc: "Joseph S. Myers" , Mike Stump X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.4D5960ED.011F, actions=tag X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B020A.4D5960F0.0206,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=single engine X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00895.txt.bz2 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