public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/96881] New: [8/9/10/11 Regression] Clobbers on NULL vs. DCE since r8-1519
@ 2020-09-01 10:54 jakub at gcc dot gnu.org
  2020-09-01 10:55 ` [Bug tree-optimization/96881] " jakub at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-09-01 10:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96881
           Summary: [8/9/10/11 Regression] Clobbers on NULL vs. DCE since
                    r8-1519
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org, marxin at gcc dot gnu.org,
                    rguenth at gcc dot gnu.org, slyfox at gcc dot gnu.org,
                    unassigned at gcc dot gnu.org, webrown.cpp at gmail dot com
        Depends on: 96717, 96722
            Blocks: 96721
  Target Milestone: ---

+++ This bug was initially created as a clone of Bug #96722 +++

struct S { int s; ~S () {} };

void
foo (S *a)
{
  if (a)
    return;
  a->~S ();
}

int
main ()
{
  S s;
  foo (&s);
}

is miscompiled, since r249450 aka
r8-1519-ge59a1c22fb249388e82b4fd004f33615abe36d2e at -O2.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96717
[Bug 96717] -flifetime-dse=2 breaks webkit-gtk-2.28.4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96721
[Bug 96721] [11 Regression] pseudo-destructor calls on pointers since r11-2238
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96722
[Bug 96722] [8/9/10/11 Regression] Clobbers on NULL since r8-1519

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

end of thread, other threads:[~2023-07-07 10:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 10:54 [Bug tree-optimization/96881] New: [8/9/10/11 Regression] Clobbers on NULL vs. DCE since r8-1519 jakub at gcc dot gnu.org
2020-09-01 10:55 ` [Bug tree-optimization/96881] " jakub at gcc dot gnu.org
2020-09-02  7:39 ` rguenth at gcc dot gnu.org
2020-09-17 17:58 ` jakub at gcc dot gnu.org
2020-10-12 12:26 ` rguenth at gcc dot gnu.org
2021-05-14  9:53 ` [Bug tree-optimization/96881] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:18 ` rguenth at gcc dot gnu.org
2022-02-15 12:32 ` rguenth at gcc dot gnu.org
2022-02-18  7:50 ` cvs-commit at gcc dot gnu.org
2022-05-27  9:43 ` [Bug tree-optimization/96881] [10/11 " rguenth at gcc dot gnu.org
2022-06-28 10:41 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug tree-optimization/96881] [11 " rguenth 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).