Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2023-04-30 Thread Andrew Pinski via Gcc-patches
t;> From: Longjun Luo > >> Date: Thu, 12 Jan 2023 23:59:54 +0800 > >> Subject: [PATCH] libcpp: suppress builtin macro redefined warnings for > >> __LINE__ > >> > >> As implied in > >> gcc.gnu.org/legacy-ml/gcc-patches/2008-09/msg00076.html,

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2023-04-30 Thread Jeff Law via Gcc-patches
On 4/30/23 12:30, Jeff Law wrote: On 1/12/23 09:02, Longjun Luo via Gcc-patches wrote:  From 0821df518b264e754d698d399f98be1a62945e32 Mon Sep 17 00:00:00 2001 From: Longjun Luo Date: Thu, 12 Jan 2023 23:59:54 +0800 Subject: [PATCH] libcpp: suppress builtin macro redefined warnings for

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2023-04-30 Thread Jeff Law via Gcc-patches
On 1/12/23 09:02, Longjun Luo via Gcc-patches wrote: From 0821df518b264e754d698d399f98be1a62945e32 Mon Sep 17 00:00:00 2001 From: Longjun Luo Date: Thu, 12 Jan 2023 23:59:54 +0800 Subject: [PATCH] libcpp: suppress builtin macro redefined warnings for  __LINE__ As implied in gcc.gnu.org

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2023-01-12 Thread Longjun Luo via Gcc-patches
On 12/2/2022 5:10 AM, Joseph Myers wrote: On Fri, 2 Dec 2022, Longjun Luo via Gcc-patches wrote: They are ./gcc/testsuite/gcc.dg/cpp/warn-redefined.c and ./gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c These two cases redefine the __TIME__ macro when using the option '-Wbuiltin-macro-redefined'.

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2023-01-12 Thread Longjun Luo via Gcc-patches
From 0821df518b264e754d698d399f98be1a62945e32 Mon Sep 17 00:00:00 2001 From: Longjun Luo Date: Thu, 12 Jan 2023 23:59:54 +0800 Subject: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__ As implied in gcc.gnu.org/legacy-ml/gcc-patches/2008-09/msg00076.html, gcc provides

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2022-12-01 Thread Joseph Myers
On Fri, 2 Dec 2022, Longjun Luo via Gcc-patches wrote: > They are ./gcc/testsuite/gcc.dg/cpp/warn-redefined.c and > ./gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c > > These two cases redefine the __TIME__ macro when using the option > '-Wbuiltin-macro-redefined'. > > I think I shoud add a test to

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2022-12-01 Thread Longjun Luo via Gcc-patches
On 12/2/2022 3:07 AM, Joseph Myers wrote: On Fri, 2 Dec 2022, Longjun Luo via Gcc-patches wrote: On 12/2/2022 1:01 AM, Joseph Myers wrote: On Thu, 1 Dec 2022, Longjun Luo via Gcc-patches wrote: diff --git a/gcc/testsuite/gcc.dg/builtin-redefine.c b/gcc/testsuite/gcc.dg/builtin-redefine.c i

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2022-12-01 Thread Joseph Myers
On Fri, 2 Dec 2022, Longjun Luo via Gcc-patches wrote: > > On 12/2/2022 1:01 AM, Joseph Myers wrote: > > On Thu, 1 Dec 2022, Longjun Luo via Gcc-patches wrote: > > > > > diff --git a/gcc/testsuite/gcc.dg/builtin-redefine.c > > > b/gcc/testsuite/gcc.dg/builtin-redefine.c > > > index 882b2210992..

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2022-12-01 Thread Longjun Luo via Gcc-patches
On 12/2/2022 1:01 AM, Joseph Myers wrote: On Thu, 1 Dec 2022, Longjun Luo via Gcc-patches wrote: diff --git a/gcc/testsuite/gcc.dg/builtin-redefine.c b/gcc/testsuite/gcc.dg/builtin-redefine.c index 882b2210992..9d5b42252ee 100644 --- a/gcc/testsuite/gcc.dg/builtin-redefine.c +++ b/gcc/testsu

Re: [PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2022-12-01 Thread Joseph Myers
On Thu, 1 Dec 2022, Longjun Luo via Gcc-patches wrote: > diff --git a/gcc/testsuite/gcc.dg/builtin-redefine.c > b/gcc/testsuite/gcc.dg/builtin-redefine.c > index 882b2210992..9d5b42252ee 100644 > --- a/gcc/testsuite/gcc.dg/builtin-redefine.c > +++ b/gcc/testsuite/gcc.dg/builtin-redefine.c > @@ -7

[PATCH] libcpp: suppress builtin macro redefined warnings for __LINE__

2022-11-30 Thread Longjun Luo via Gcc-patches
As implied in gcc.gnu.org/legacy-ml/gcc-patches/2008-09/msg00076.html, gcc provides -Wno-builtin-macro-redefined to suppress warning when redefining builtin macro. However, at that time, there was no scenario for __LINE__ macro. But, when we try to build a live-patch, we compare sections by using