This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Improving GCC8 default option settings


On 09/12/2017 05:32 PM, Andrew Pinski wrote:
>  .On Tue, Sep 12, 2017 at 8:29 AM, Theodore Papadopoulo
> <Theodore.Papadopoulo@inria.fr> wrote:
>> Another one that might be interesting is -funsafe-loop-optimizations.
>> In most cases people write loops assuming simple finite loops (no
>> overflow). Crippling optimization for the small amount of people (system
>> programmers ?) that use such strange loops seems counterproductive. It
>> would be best if such loops can be marked with an attribute in some way
>> and that the general case just assumes that all loops are finite...
> 
> -funsafe-loop-optimizations is a nop in GCC 7 and above.
> Since https://gcc.gnu.org/ml/gcc-patches/2016-07/msg00956.html .
> 
> Thanks,
> Andrew
> 

Thank's for the notice. For some reason, I missed that piece of
information... Too bad that making such an assumption generates bogus
code in some common cases.

	Theo.

Attachment: 0x4F273D5D.asc
Description: application/pgp-keys


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]