GNU bug report logs - #16304
Upcoming clang-3.4 apparently miscompiles coreutils.

Previous Next

Package: coreutils;

Reported by: Markus Trippelsdorf <markus <at> trippelsdorf.de>

Date: Mon, 30 Dec 2013 18:27:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 16304 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Markus Trippelsdorf <markus <at> trippelsdorf.de>
Cc: 16304 <at> debbugs.gnu.org
Subject: Re: bug#16304: Upcoming clang-3.4 apparently miscompiles coreutils.
Date: Mon, 30 Dec 2013 18:47:11 +0000
On 12/30/2013 12:32 PM, Markus Trippelsdorf wrote:
> coreutils-8.22 build with clang-3.4 doesn't copy permissions correctly:
> 
> markus <at> x4 tmp % touch test1
> markus <at> x4 tmp % chmod 600 test1
> markus <at> x4 tmp % ls -al test1
> -rw------- 1 markus markus 0 Dec 30 13:25 test1
> markus <at> x4 tmp % /var/tmp/coreutils-8.22/src/cp test1 test2
> markus <at> x4 tmp % ls -al test2
> ---------- 1 markus markus 0 Dec 30 13:25 test2
> markus <at> x4 tmp %

Ouch.

Note as part of the 8.22 release process
I did verify that `make check` passed with
clang-3.3-3.fc20.x86_64

I've again verified that clang-3.3 passes your test above.

Can you pinpoint the erroneous code?
It does seem like a clang regression TBH.

thanks,
Pádraig.




This bug report was last modified 6 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.