Re: Odd optimizer behavior with FP arithmetic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 26, 2019 at 8:11 PM Alexander Monakov <amonakov@xxxxxxxxx>
wrote:

> The 'add' function is inlined into main, and floating-point operations that
> would compute result.c are eliminated as dead code because result.c is
> never
> used.
>
> (and because the compiler doesn't attempt to preserve floating-point
> exceptions
> that those eliminated instructions might raise)

...

In this case inlining does not happen due to flags being different between
> 'main' and 'add'.
>
> In the first case inlining also does not happen for the same reason.
>

Well, ain't I a dummy.

Thanks a lot!
Konstantin.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux