Hi Kewen, Thank you for the explanation. Best regards, Qingnan Duan ________________________________ From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx> Sent: Thursday, December 24, 2020 20:28 To: Kewen.Lin <linkw@xxxxxxxxxxxxx> Cc: Qingnan Duan <Qingnan.Duan@xxxxxxxxxxxxx>; gcc-help <gcc-help@xxxxxxxxxxx> Subject: [EXTERNAL] Re: GCC address sanitizer - supported architecture On Thu, 24 Dec 2020, 12:06 Kewen.Lin, <linkw@xxxxxxxxxxxxx<mailto:linkw@xxxxxxxxxxxxx>> wrote: > on 2020/12/24 下午6:10, Jonathan Wakely wrote: > On Thu, 24 Dec 2020, 08:50 Kewen.Lin via Gcc-help, <gcc-help@xxxxxxxxxxx<mailto:gcc-help@xxxxxxxxxxx> <mailto:gcc-help@xxxxxxxxxxx<mailto:gcc-help@xxxxxxxxxxx>>> wrote: > > Hi Qingnan, > > on 2020/12/24 上午11:23, Qingnan Duan via Gcc-help wrote: > > Hi everyone, > > I was looking at this page Instrumentation Options (Using the GNU Compiler Collection (GCC))<https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fonlinedocs%2Fgcc%2FInstrumentation-Options.html&data=04%7C01%7Cqingnan.duan%40microsoft.com%7Cc5804cae19b542e4257c08d8a8076db7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637444097175916947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IQqepPCIqaScR58IOrTVCNQMbOYAkuhRaAL5L71MBCA%3D&reserved=0> <https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fonlinedocs%2Fgcc%2FInstrumentation-Options.html&data=04%7C01%7Cqingnan.duan%40microsoft.com%7Cc5804cae19b542e4257c08d8a8076db7%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637444097175916947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IQqepPCIqaScR58IOrTVCNQMbOYAkuhRaAL5L71MBCA%3D&reserved=0>>> and it says "-fsanitize=address" is only supported on AArch64. However, I was able to compile my code on x86-64 CPU with -fsanitize=address flag. > > > > I think the part "Note that the only target this option is currently supported on is AArch64. " > is specific for option “-fsanitize=hwaddress” not for option "-fsanitize=address". > > Only aarch64 port re-defines TARGET_MEMTAG_CAN_TAG_ADDRESSES which is used for -fsanitize=hwaddress, > that matches the wordings. > > By the way, I also felt a bit confused without digging, not sure whether it's confusing from > native speaker's perspective. If yes, maybe it's worth to revise it somehow. :) > > > Yes, the documentation should be fixed. As currently written it's incorrect. > > Could you please file a bug? > Hi Jonathan, Thanks for confirming this. PR98437 was opened as you suggested. Great, thanks.