This is the mail archive of the gcc-bugs@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]

[Bug c++/70018] [4.9/5/6 Regression] Possible issue around IPO and C++ comdats discovered as pure/const


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70018

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com

--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
To properly track possible loads/stores w/o any optimizations we probably need
an info from Frontend, because we optimize out things prior gimplification.
Jason, how feasible it is to do that?

For pure/const a workaround is -fno-ipa-pure-const. The bug also affects
nothrow at least with -fnoncall-exceptions and nothrow discovery is not
controled by a flag.

Fixing this correctly will need bit of work, because we really want to track
nothrow/pure/const for the inline functions and make us of it when we know the
call bids to current def. This can change during the optimization queue, so we
probably want two sets of these flags.

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