[Bug c++/85535] bogus code in decl2.c:decl_needed_p

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon May 28 11:07:00 GMT 2018


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Ah, Ok, I think I understand now. You mean, for our testsuite:

      DECL_REALLY_EXTERN (decl)
      && ((TREE_CODE (decl) != FUNCTION_DECL
           && !optimize)
          || (TREE_CODE (decl) == FUNCTION_DECL
              && !opt_for_fn (decl, optimize)))

is always false. Then does that mean we have another bug, ie the condition is
wrong, or more trivially that we aren't exercising the optimization?? Honza
unfortunately didn't add any testcases at the time...


More information about the Gcc-bugs mailing list