[Bug 240629] [exp-run] Against projects/clang900-import branch

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Sep 21 21:01:56 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240629

--- Comment #7 from commit-hook at freebsd.org ---
A commit references this bug:

Author: dim
Date: Sat Sep 21 21:01:39 UTC 2019
New revision: 352586
URL: https://svnweb.freebsd.org/changeset/base/352586

Log:
  Pull in r371557 from upstream clang trunk (by Richard Smith):

    When evaluating a __builtin_constant_p conditional, always enter
    constant-folding mode regardless of the original evaluation mode.

    In order for this to be correct, we need to track whether we're
    checking for a potential constant expression or checking for
    undefined behavior separately from the evaluation mode enum, since we
    don't want to clobber those states when entering constant-folding
    mode.

  This should fix "ld: error: undefined symbol: ix86_isa_flags" (and many
  other symbol names) during the initial stages of the lang/gcc* ports.

  The issue was that without optimization, the __builtin_constant_p()
  expressions generated in gencondmd.c would emit references to global
  variables that were undefined, such as ix86_isa_flags.

  PR:           240629

Changes:
  projects/clang900-import/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list