<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">This broke local builds for me with "asm" not being recognized as a keyword, since we're in c11 (as opposed to gnu11) mode. I changed to __asm__ in r360503 to fix.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">llvm-commits <llvm-commits-bounces@lists.llvm.org> on behalf of Petr Hosek via llvm-commits <llvm-commits@lists.llvm.org><br>
<b>Reply-To: </b>Petr Hosek <phosek@chromium.org><br>
<b>Date: </b>Friday, May 10, 2019 at 12:21 PM<br>
<b>To: </b>"llvm-commits@lists.llvm.org" <llvm-commits@lists.llvm.org><br>
<b>Subject: </b>[compiler-rt] r360459 - [crt] Use -std=c11 for crtbegin.o/crtend.o<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Author: phosek<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Date: Fri May 10 12:23:56 2019<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">New Revision: 360459<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D360459-26view-3Drev&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=oWRSW1R2m7jtRxTePDpnhQmgp4c60bcIjAIKpYNsYoU&e=">
https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D360459-26view-3Drev&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=oWRSW1R2m7jtRxTePDpnhQmgp4c60bcIjAIKpYNsYoU&e=</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Log:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">[crt] Use -std=c11 for crtbegin.o/crtend.o<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">The source uses C11 syntax such as comments and some compilers print<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">warnings without specifying this flag.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Differential Revision: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__reviews.llvm.org_D61797&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=cTd6OqE2f1ToETurJJ052sMxLyAISFuRS14zJlHoUoY&e=">
https://urldefense.proofpoint.com/v2/url?u=https-3A__reviews.llvm.org_D61797&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=cTd6OqE2f1ToETurJJ052sMxLyAISFuRS14zJlHoUoY&e=</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Modified:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">    compiler-rt/trunk/cmake/config-ix.cmake<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">    compiler-rt/trunk/lib/crt/CMakeLists.txt<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Modified: compiler-rt/trunk/cmake/config-ix.cmake<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_compiler-2Drt_trunk_cmake_config-2Dix.cmake-3Frev-3D360459-26r1-3D360458-26r2-3D360459-26view-3Ddiff&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=2BpCHCLR-c81OyANE8COZCLhWQGw8_HxPDiPbfUFMc4&e=">
https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_compiler-2Drt_trunk_cmake_config-2Dix.cmake-3Frev-3D360459-26r1-3D360458-26r2-3D360459-26view-3Ddiff&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=2BpCHCLR-c81OyANE8COZCLhWQGw8_HxPDiPbfUFMc4&e=</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">==============================================================================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">--- compiler-rt/trunk/cmake/config-ix.cmake (original)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">+++ compiler-rt/trunk/cmake/config-ix.cmake Fri May 10 12:23:56 2019<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">@@ -54,6 +54,7 @@ endif ()<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"># CodeGen options.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">check_c_compiler_flag(-ffreestanding         COMPILER_RT_HAS_FFREESTANDING_FLAG)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">+check_c_compiler_flag(-std=c11               COMPILER_RT_HAS_STD_C11_FLAG)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">check_cxx_compiler_flag(-fPIC                COMPILER_RT_HAS_FPIC_FLAG)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">check_cxx_compiler_flag(-fPIE                COMPILER_RT_HAS_FPIE_FLAG)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">check_cxx_compiler_flag(-fno-builtin         COMPILER_RT_HAS_FNO_BUILTIN_FLAG)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Modified: compiler-rt/trunk/lib/crt/CMakeLists.txt<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_compiler-2Drt_trunk_lib_crt_CMakeLists.txt-3Frev-3D360459-26r1-3D360458-26r2-3D360459-26view-3Ddiff&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=6JMbFEWsOS4JTMRD6HQKO-D6VewsLknWMkA0APxSF9I&e=">
https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_compiler-2Drt_trunk_lib_crt_CMakeLists.txt-3Frev-3D360459-26r1-3D360458-26r2-3D360459-26view-3Ddiff&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=6JMbFEWsOS4JTMRD6HQKO-D6VewsLknWMkA0APxSF9I&e=</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">==============================================================================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">--- compiler-rt/trunk/lib/crt/CMakeLists.txt (original)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">+++ compiler-rt/trunk/lib/crt/CMakeLists.txt Fri May 10 12:23:56 2019<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">@@ -71,6 +71,7 @@ endfunction()<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">check_cxx_section_exists(".init_array" COMPILER_RT_HAS_INITFINI_ARRAY<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">   SOURCE "__attribute__((constructor)) void f() {}\nint main() { return 0; }\n")<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">+append_list_if(COMPILER_RT_HAS_STD_C11_FLAG -std=c11 CRT_CFLAGS)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">append_list_if(COMPILER_RT_HAS_INITFINI_ARRAY -DCRT_HAS_INITFINI_ARRAY CRT_CFLAGS)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC CRT_CFLAGS)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">append_list_if(COMPILER_RT_HAS_WNO_PEDANTIC -Wno-pedantic CRT_CFLAGS)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">_______________________________________________<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">llvm-commits mailing list<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Dcommits&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=vsfW8FnibWUhC1THc88xR38ol-iYmBGIUaSfbNjmPxY&e=">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Dcommits&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=1Yc1PNaFMA1PFNQyWytdu35F_ZjYml6vLMzZFEtcTZs&s=vsfW8FnibWUhC1THc88xR38ol-iYmBGIUaSfbNjmPxY&e=</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
</div>
</body>
</html>