X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=KyKB7NycQHBXsgFO3EYDw9wzU8OIU nNhQRw1m0ufPSxYCV1TmPYgRQ3Mn2uGxMAhlzrK9g0sxFWTJp56RWdpPDlWVfgTE T7ZlTihng4UXj0evF74LAp6LDat3WX3GAMQ1dFZDh3txiWfVmOE3VD5x5P2Q+/DL 8Zx70ihsewlhPI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=eX6Uaot4u17Zn3GGjVr4XnmBUoU=; b=IDB qKr2/I7OdjHuVdrGQSDUwSl9Ifo1H5RU0QGKfCVL+Maoc5vF0ODncTp3a6ymUOzH xUJnJR9lxBONiz8oNmMUi4EADh26eAbw/in1E9KypzLclgg49FBbIp9KhA76zdLt fjixQJlYvRvr+UwED2xA55IEVcStEoRHRbuJrxJ4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*M:namprd02, 5x, Hauthentication-results:gmail.com, mingw64*gcc5402 X-HELO: SNT004-OMC2S30.hotmail.com From: Tony Kelman To: JonY <10walls AT gmail DOT com>, "cygwin AT cygwin DOT com" Subject: Re: [ANNOUNCEMENT] Updated: mingw64-*-gcc-5.4.0-2 (x86/x86_64) Date: Tue, 21 Feb 2017 14:45:01 +0000 Message-ID: References: <57B4EF9D DOT 9030903 AT users DOT sourceforge DOT net> <57B57F47 DOT 3030100 AT gmail DOT com> <57B5C44B DOT 4000108 AT gmail DOT com> <57B7A5BD DOT 6000600 AT gmail DOT com> ,<39ba2d3e-b16e-8d69-d2f0-e6a6e65472ca AT gmail DOT com> In-Reply-To: <39ba2d3e-b16e-8d69-d2f0-e6a6e65472ca@gmail.com> authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=kelman.net; x-incomingtopheadermarker: OriginalChecksum:05AB02B20FECBBFB99CEA71410C295074F8F4298B722BB17C6AE5DEFD4112B82;UpperCasedChecksum:FB54623B1FD3ABC969802659888807F987F66E5B87B04BD6985223F33EC94975;SizeAsReceived:8660;Count:39 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [PQZ0Dhn8VQvydTv0kKtTNTOaIugRqrbK] x-incomingheadercount: 39 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;CO1NAM04HT067;7:w9Q4b2LiUQTFgpwsUElWnOuHwRtTqdGK5mvwR4yEmF0CQYtyPm5g4G+3tGOQoYJ41lR2OnlZ0PiRhr0BxsutKXjm2kVqQWLPWMX7tGUwZanRh/b7MjRFxBf2mWNFpubZ9XxBVLJCv67tzbdRuQ+YegaNY3UucZ0CY9+TsiRq6YN8nSgbyQlz/RW9kov1SdUgSMh7zazxiSgJ0v9MxHIOMP3T7ff1CeQQLunXQ+fTDNGxk7uCLvKbEiNNQR2/Had6BQKO907vDJnAoNWLtsWFhVEr7nNCVex3JDg5nh09uCBmDi3vOlDTNn5q6flHn4cgQLijSweqbtdaJffx1eTRcw== x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900012);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1NAM04HT067;H:DM2PR0201MB0799.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 39d7af4a-a909-4006-2931-08d45a683711 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506556)(5061507331)(1603103135)(1601125237)(1603101373)(1701031045);SRVR:CO1NAM04HT067; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015087)(444000031);SRVR:CO1NAM04HT067;BCL:0;PCL:0;RULEID:;SRVR:CO1NAM04HT067; x-forefront-prvs: 0225B0D5BC spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2017 14:45:01.2031 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT067 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v1LEjWUo006961 > Do you have a small test case for this instead of running the entire > test suite? I'm not sure how much time the full test suite takes. Don't have a small test case, but I do have a big one. I've been verifying that the patch helps in cross-compiles from opensuse where it's a lot faster to build a patched gcc (and the test case) than in cygwin. Large test case (takes about 15 minutes on my year-old laptop): curl -L http://llvm.org/releases/3.7.1/llvm-3.7.1.src.tar.xz | tar -xJf - mkdir -p llvmbuild/bin cd llvmbuild echo 'set(CMAKE_C_COMPILER gcc)' > NATIVE.cmake echo 'set(CMAKE_CXX_COMPILER g++)' >> NATIVE.cmake cp /usr/i686-w64-mingw32/sys-root/mingw/bin/*.dll bin cmake ../llvm-3.7.1.src -DCMAKE_SYSTEM_NAME=Windows \ -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host \ -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc \ -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ \ -DCROSS_TOOLCHAIN_FLAGS_NATIVE=-DCMAKE_TOOLCHAIN_FILE=$PWD/NATIVE.cmake make -j`nproc` opt bin/opt.exe -slp-vectorizer \ -S ../llvm-3.7.1.src/test/Transforms/SLPVectorizer/X86/vector.ll That'll give the following sane LLVM IR output on gcc 4.9, or crash on unpatched 5+. ; ModuleID = '../llvm-3.7.1.src/test/Transforms/SLPVectorizer/X86/vector.ll' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.8.0" define void @test(<4 x i32> %in, <4 x i32> %in2) { %k = icmp eq <4 x i32> %in, %in2 ret void } > I'll to include the update in the next 5.x release. Thanks! We're mainly trying to double-check that the patch doesn't introduce any regressions, cause more problems than it solves. -Tony -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple