Bug 55353 - [asan] the flag for asan should match the one used in clang
Summary: [asan] the flag for asan should match the one used in clang
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: sanitizer (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 16:57 UTC by Konstantin Serebryany
Modified: 2013-11-13 09:28 UTC (History)
7 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Serebryany 2012-11-16 16:57:01 UTC
Currently, gcc trunk uses -faddress-sanitizer
Clang has recently changed the flag to -fsanitize=address
(there was a data race between clang change and gcc review-commit cycle :)

We need to match the flags. 

Same applies to tsan (seems like it is not committed to gcc yet)
Comment 1 Konstantin Serebryany 2012-11-19 05:20:24 UTC
Wei, this needs to happen ASAP, otherwise there will be too many places with the old flag.
Comment 2 wmi 2012-11-19 05:54:44 UTC
Hi Kostya,

Ok, I will extract the change from the tsan patch and send out a
separate patch about it.

Regards,
Wei.

On Sun, Nov 18, 2012 at 9:20 PM, konstantin.s.serebryany at gmail dot
com <gcc-bugzilla@gcc.gnu.org> wrote:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55353
>
> Konstantin Serebryany <konstantin.s.serebryany at gmail dot com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |hjl.tools at gmail dot com,
>                    |                            |wmi at gcc dot gnu.org
>
> --- Comment #1 from Konstantin Serebryany <konstantin.s.serebryany at gmail dot com> 2012-11-19 05:20:24 UTC ---
> Wei, this needs to happen ASAP, otherwise there will be too many places with
> the old flag.
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
Comment 3 Jakub Jelinek 2012-11-19 07:45:31 UTC
Yes, please.  But make sure to update all the spots where -faddress-sanitizer is used in the tree (e.g. gcc/testsuite/lib/asan-dg.exp, gcc/doc/*, etc.).
Comment 4 Yury Gribov 2013-11-13 09:24:23 UTC
Could someone close this? Was fixed in r193702
Comment 5 Kostya Serebryany 2013-11-13 09:28:53 UTC
fixed indeed.