]> granicus.if.org Git - clang/commit
-fms-extensions: Error out on #pragma init_seg
authorReid Kleckner <reid@kleckner.net>
Thu, 3 Apr 2014 19:04:24 +0000 (19:04 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 3 Apr 2014 19:04:24 +0000 (19:04 +0000)
commit3981431fb19eef89a0fa54a71e645977a6335a27
tree5b190dc71fbc20642213735d1af2a4fe2fc39359
parentdffd876205c2affe56bb9257074c72d914b2529b
-fms-extensions: Error out on #pragma init_seg

By ignoring this pragma with a warning, we're essentially miscompiling
the user's program.  WebKit / Blink use this pragma to disable dynamic
initialization and finalization of some static data, and running the
dtors crashes the program.

Error out for now, so that /fallback compiles the TU correctly with
MSVC.  This pragma should be implemented some time this month, and we
can remove this hack.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205554 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParsePragma.cpp
test/CodeGenCXX/pragma-init_seg.cpp [new file with mode: 0644]