On Wed, Dec 29, 2021 at 9:39 PM <shi...@iscas.ac.cn> wrote: > > From: LiaoShihua <shi...@iscas.ac.cn> > > * gcc.dg/pr102892-2.c: Add definition of function foo() which > declared in pr102892-1.c
This patch is wrong. The testcase is testing to make sure foo was optimized out. If it is failing for you can you file a bug with the specific target and log for that testcase? Thanks, Andrew Pinski > --- > gcc/testsuite/gcc.dg/pr102892-2.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/gcc/testsuite/gcc.dg/pr102892-2.c > b/gcc/testsuite/gcc.dg/pr102892-2.c > index b39bd6c97b3..b179b26680c 100644 > --- a/gcc/testsuite/gcc.dg/pr102892-2.c > +++ b/gcc/testsuite/gcc.dg/pr102892-2.c > @@ -5,3 +5,8 @@ void > bar (void) > { > } > + > +void > +foo (void) > +{ > +} > \ No newline at end of file > -- > 2.31.1.windows.1 >