public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
@ 2021-08-03 10:01 clyon at gcc dot gnu.org
  2021-08-03 10:05 ` [Bug tree-optimization/101746] " clyon at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: clyon at gcc dot gnu.org @ 2021-08-03 10:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

            Bug ID: 101746
           Summary: [12 regression] gcc.dg/tree-prof/20050826-2.c and
                    gcc.dg/uninit-pred-9_b.c fail since r12-2591
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: clyon at gcc dot gnu.org
  Target Milestone: ---

Since r12-2591, I've noticed this regression:
FAIL: gcc.dg/tree-prof/20050826-2.c scan-tree-dump-not dom2 "Invalid sum"
on arm and aarch64

In addition:
FAIL: gcc.dg/uninit-pred-9_b.c bogus warning (test for bogus messages, line 25)
occurs on arm-none-eabi when testing with:
-mthumb -mfloat-abi=hard -march=armv7e-m+fp.dp
-mthumb -mfloat-abi=hard -march=armv7e-m+fp
-mthumb -mfloat-abi=soft -march=armv6s-m
-mthumb -mfloat-abi=soft -march=armv7-m
-mthumb -mfloat-abi=soft -march=armv8.1-m.main

or arm-none-linux-gnueabihf when configured --with-cpu=cortex-a5
--with-fpu=vfpv3-d16-fp16

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
@ 2021-08-03 10:05 ` clyon at gcc dot gnu.org
  2021-08-03 10:10 ` aldyh at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: clyon at gcc dot gnu.org @ 2021-08-03 10:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

--- Comment #1 from Christophe Lyon <clyon at gcc dot gnu.org> ---
In addition on arm:


FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++98 (test for excess errors)
Excess errors:
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
region of size 0 overflows the destination [-Wstringop-overflow=]

FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++14 (test for excess errors)
Excess errors:
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
region of size 0 [-Wstringop-overflow=]
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:149:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 3 bytes into a
region of size 2 [-Wstringop-overflow=]

FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++17 (test for excess errors)
Excess errors:
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
region of size 0 [-Wstringop-overflow=]
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:149:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 3 bytes into a
region of size 2 [-Wstringop-overflow=]

FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++2a (test for excess errors)
Excess errors:
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
region of size 0 [-Wstringop-overflow=]
/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:149:3: warning: 'void*
__builtin_memcpy(void*, const void*, unsigned int)' writing 3 bytes into a
region of size 2 [-Wstringop-overflow=]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
  2021-08-03 10:05 ` [Bug tree-optimization/101746] " clyon at gcc dot gnu.org
@ 2021-08-03 10:10 ` aldyh at gcc dot gnu.org
  2021-08-03 10:13 ` aldyh at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-08-03 10:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldyh at gcc dot gnu.org

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
There is already PR101674 for the uninit-pred-9.c regression.

The 20050826-2.c may be related to PR101690 which was caused by inconsistent
profile estimates as well.  Jeff commented that the backwards threader probably
doesn't set profile estimates correctly:

https://gcc.gnu.org/pipermail/gcc-patches/2021-July/576437.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
  2021-08-03 10:05 ` [Bug tree-optimization/101746] " clyon at gcc dot gnu.org
  2021-08-03 10:10 ` aldyh at gcc dot gnu.org
@ 2021-08-03 10:13 ` aldyh at gcc dot gnu.org
  2021-08-03 10:46 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-08-03 10:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to Christophe Lyon from comment #1)
> In addition on arm:
> 
> 
> FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++98 (test for excess
> errors)
> Excess errors:
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
> region of size 0 overflows the destination [-Wstringop-overflow=]
> 
> FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++14 (test for excess
> errors)
> Excess errors:
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
> region of size 0 [-Wstringop-overflow=]
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:149:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 3 bytes into a
> region of size 2 [-Wstringop-overflow=]
> 
> FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++17 (test for excess
> errors)
> Excess errors:
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
> region of size 0 [-Wstringop-overflow=]
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:149:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 3 bytes into a
> region of size 2 [-Wstringop-overflow=]
> 
> FAIL: g++.dg/warn/Wstringop-overflow-4.C  -std=gnu++2a (test for excess
> errors)
> Excess errors:
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:148:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 2 bytes into a
> region of size 0 [-Wstringop-overflow=]
> /gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:149:3: warning: 'void*
> __builtin_memcpy(void*, const void*, unsigned int)' writing 3 bytes into a
> region of size 2 [-Wstringop-overflow=]

There is already PR101688 for this.

Basically, I think all the issues reported here have corresponding PRs opened.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-08-03 10:13 ` aldyh at gcc dot gnu.org
@ 2021-08-03 10:46 ` rguenth at gcc dot gnu.org
  2021-08-03 12:24 ` clyon at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-03 10:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-08-03 10:46 ` rguenth at gcc dot gnu.org
@ 2021-08-03 12:24 ` clyon at gcc dot gnu.org
  2021-08-16 19:41 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: clyon at gcc dot gnu.org @ 2021-08-03 12:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

--- Comment #4 from Christophe Lyon <clyon at gcc dot gnu.org> ---
OK, sorry for the duplicates, I tried to find reports about 20050826-2.c, found
none, and forgot to check about the other two.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-08-03 12:24 ` clyon at gcc dot gnu.org
@ 2021-08-16 19:41 ` pinskia at gcc dot gnu.org
  2021-10-21  5:51 ` pinskia at gcc dot gnu.org
  2021-10-21  7:26 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-16 19:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-08-16

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can confirm gcc.dg/tree-prof/20050826-2.c fails even on x86_64-linux-gnu.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-08-16 19:41 ` pinskia at gcc dot gnu.org
@ 2021-10-21  5:51 ` pinskia at gcc dot gnu.org
  2021-10-21  7:26 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-21  5:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> I can confirm gcc.dg/tree-prof/20050826-2.c fails even on x86_64-linux-gnu.

I think this has been fixed now.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/101746] [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591
  2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-10-21  5:51 ` pinskia at gcc dot gnu.org
@ 2021-10-21  7:26 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-21  7:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101746

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, it's gone.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-10-21  7:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 10:01 [Bug tree-optimization/101746] New: [12 regression] gcc.dg/tree-prof/20050826-2.c and gcc.dg/uninit-pred-9_b.c fail since r12-2591 clyon at gcc dot gnu.org
2021-08-03 10:05 ` [Bug tree-optimization/101746] " clyon at gcc dot gnu.org
2021-08-03 10:10 ` aldyh at gcc dot gnu.org
2021-08-03 10:13 ` aldyh at gcc dot gnu.org
2021-08-03 10:46 ` rguenth at gcc dot gnu.org
2021-08-03 12:24 ` clyon at gcc dot gnu.org
2021-08-16 19:41 ` pinskia at gcc dot gnu.org
2021-10-21  5:51 ` pinskia at gcc dot gnu.org
2021-10-21  7:26 ` marxin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).