delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/21/09:45:34

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <tony AT kelman DOT net>
To: JonY <10walls AT gmail DOT com>, "cygwin AT cygwin 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: <DM2PR0201MB07991A6F56876CDAA4BC679AA7510@DM2PR0201MB0799.namprd02.prod.outlook.com>
References: <announce DOT 57B25054 DOT 3020401 AT gmail DOT com> <DM2PR0201MB079940970D55C5E9019AA53DA7130 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook DOT com> <57B4EF9D DOT 9030903 AT users DOT sourceforge DOT net> <DM2PR0201MB07990FA162A92324D6BF5B4FA7150 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook DOT com> <57B57F47 DOT 3030100 AT gmail DOT com> <DM2PR0201MB0799E7D985236F0497437D56A7150 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook DOT com> <DM2PR0201MB07995B3B84C1DCE4FECAF11FA7150 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook DOT com> <57B5C44B DOT 4000108 AT gmail DOT com> <DM2PR0201MB0799B8159F1557BE281B0971A7160 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook DOT com> <57B7A5BD DOT 6000600 AT gmail DOT com> <DM2PR0201MB0799599FC1D23C3A8FB6FEF6A7E80 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook DOT com> <DM2PR0201MB07999847654538389BC180BAA75E0 AT DM2PR0201MB0799 DOT namprd02 DOT prod DOT outlook 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
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
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019