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: unassignedclangb...@nondot.org
          Reporter: reupenl...@forward.cat
                CC: llvm-bugs@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@pfc@@YA_NI@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to