[llvm-bugs] [Bug 30431] New: error in backend: assembler label L?xxx$parent_frame_offset can not be undefined (MSVC, SEH-related)

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 17 13:53:24 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30431

            Bug ID: 30431
           Summary: error in backend: assembler label
                    L?xxx$parent_frame_offset can not be undefined (MSVC,
                    SEH-related)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: reupenllvm at forward.cat
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

While compiling my source tree under LLVM-4.0.0-r281648-win64.exe and MSVC
2015, the following compilation error happens for debug builds:

CL : fatal error : error in backend: assembler label
'L?query_cpu_feature_set at pfc@@YA_NI at Z$parent_frame_offset' can not be undefined
[F:\foobar2000\columns_ui\pfc\pfc.vcxproj]

This does not happen in release builds. This happens in previous versions of
LLVM/Clang too.


To reproduce, open a VS2015 x86 Native Tools command prompt and run:

git clone --recursive https://github.com/reupen/columns_ui.git
cd columns_ui
msbuild /m /p:PlatformToolset=LLVM-vs2014 /p:Platform=Win32
/p:Configuration=Debug /t:Rebuild vc14\columns_ui-public.sln

The problematic function is defined here:
https://github.com/reupen/pfc/blob/07bdb04d9eef8a03fada2c3ee6f364039cb4a1b5/cpuid.cpp#L7

Removing the usage of SEH makes the problem go away. Release builds also work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160917/d2b787e8/attachment.html>


More information about the llvm-bugs mailing list