Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5800d4ac7d06c2cbf4d7979fb97395ce@smtp.hushmail.com>
Date: Thu, 05 Jul 2012 19:01:32 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: warning: argument unused during compilation: '-faddress-sanitizer'
 for clang-debug

On 2012-07-05 18:21, Frank Dittrich wrote:
> With
> 
> $ clang -dumpversion
> 4.2.1
> 
> $ clang --version
> clang version 2.9 (tags/RELEASE_29/final)
> Target: i386-redhat-linux-gnu
> Thread model: posix
> 
> I get a warning per .c file when building linux-x86-debug:
> clang: warning: argument unused during compilation: '-faddress-sanitizer'
> 
> clang version 3.1 supports -faddress-sanitizer, clang version 2.9 doesn't.
> 
> clang 3.0 which also claims to be gcc 4.2.1 compatible also doesn't
> support this flag (tested for linux-x86-64-clang-debug under Fedora 17).

Same for Ubuntu with 3.0.

> Does anybody know how to adjust the Makefile to include
> -faddress-sanitizer into the CFLAGS for the two clang-debug targets only
> if the clang version is >= 3.1?
> (I don't know what clang -dumpversion prints for that release.)

I'm not aware of any way. The warning is a good thing but it would be
better if it was emitted just once :)

magnum



Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.