This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Deprecating basic asm in a function - What now?
- From: Jason Merrill <jason at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, David Wohlferd <dw at limegreensocks dot com>, Jeff Law <law at redhat dot com>, Andrew Haley <aph at redhat dot com>, Michael Matz <matz at suse dot de>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 5 Jul 2016 14:13:12 -0400
- Subject: Re: Deprecating basic asm in a function - What now?
- Authentication-results: sourceware.org; auth=none
- References: <dc3ca16c-3521-757f-fcf0-50061f510f75@LimeGreenSocks.com> <alpine.LSU.2.20.1606201931460.13156@wotan.suse.de> <57682A85.4060803@redhat.com> <alpine.LSU.2.20.1606201941340.13156@wotan.suse.de> <57690227.2050501@redhat.com> <alpine.LSU.2.20.1606211401150.13156@wotan.suse.de> <57696C45.5000309@redhat.com> <c23d921a-5546-ea81-0367-cfc1a18de876@redhat.com> <1de3322f-a2aa-ce65-2404-2f6fd7974695@LimeGreenSocks.com> <CAH6eHdRxuYdq2PacvEWs5SS4yODuSwbLwfoaz3aOOKNqxMRXrw@mail.gmail.com> <y0mr3b92xmc.fsf@fche.csb>
On Mon, Jul 4, 2016 at 12:09 PM, Frank Ch. Eigler <fche@redhat.com> wrote:
> jwakely.gcc wrote:
>
>> [...] (When we switched Fedora to using GCC 6, with C++14 enabled by
>> default, dozens and dozens of C++ packages failed to compile,
>> because even in 2016 nobody had ever tried to compile them with
>> C++11 features enabled.)
>
> And one shouldn't blame those that choose to stick with CXXFLAGS=-std=c++98
> instead of porting their code, which after all is working & stable.
Absolutely, that's a fine solution. Though often it makes sense to
put the -std argument in the CXX variable rather than CXXFLAGS.
Jason