Boost logo

Boost :

Subject: Re: [boost] [Predef] Pre-review comments
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-02-26 08:59:18

On 02/25/2012 11:15 PM, Rene Rivera wrote:
> On 2/22/2012 3:28 AM, Mathias Gaunard wrote:
>> On 02/22/2012 07:17 AM, Rene Rivera wrote:
>>> On 2/19/2012 6:37 AM, Mathias Gaunard wrote:
>>>> My use-cases
>>> [...]
>>>> - Work-around a bug in the GCC backend
>>> Is that with a non-GCC front end?
>> The bug in question is in the GCC backend, more precisely in the RTL
>> optimization passes.
>> I don't really care what frontend is used as long as code eventually
>> gets through there.
>> In practice, GCC should be the only compiler to use the GCC backend.
>> I know that there are compilers though, that use the GCC frontend but
>> another backend, such as DragonEgg.
>> LLVM doesn't have this bug so I'd rather not add the workaround when
>> compiling with DragonEgg.
> I'm not sure if there's much that can be done about detecting the
> various back-ends vs. front-ends as Predef only deals with reflecting
> what the compiler is saying about itself.

DragonEgg and llvm-gcc define both __GNUC__ and __llvm__.
I don't see any problem there with telling that it's a GCC frontend with
a LLVM backend.

Boost list run by bdawes at, gregod at, cpdaniel at, john at