public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/106075] New: Wrong DSE with -fnon-call-exceptions
@ 2022-06-24  9:34 hubicka at gcc dot gnu.org
  2022-06-24  9:36 ` [Bug middle-end/106075] " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: hubicka at gcc dot gnu.org @ 2022-06-24  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106075
           Summary: Wrong DSE with -fnon-call-exceptions
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
  Target Milestone: ---

In the following testcase:

int a = 1;
short *b;
void
test()
{
        a=12345;
        *b=0;
        a=1;
}

we should not optimize out a=12345 when compiling with -fnon-call-exceptions. 
The store to b may throw and thus the store is live.

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

end of thread, other threads:[~2023-05-08 13:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  9:34 [Bug middle-end/106075] New: Wrong DSE with -fnon-call-exceptions hubicka at gcc dot gnu.org
2022-06-24  9:36 ` [Bug middle-end/106075] " pinskia at gcc dot gnu.org
2022-06-24  9:39 ` pinskia at gcc dot gnu.org
2022-06-24 10:39 ` rguenth at gcc dot gnu.org
2022-06-24 11:14 ` hubicka at gcc dot gnu.org
2022-06-24 11:15 ` hubicka at gcc dot gnu.org
2023-01-16 20:58 ` hubicka at gcc dot gnu.org
2023-01-17  9:16 ` rguenth at gcc dot gnu.org
2023-05-03 12:56 ` rguenth at gcc dot gnu.org
2023-05-03 12:57 ` rguenth at gcc dot gnu.org
2023-05-08  9:35 ` ebotcazou at gcc dot gnu.org
2023-05-08 13:25 ` ebotcazou at gcc dot gnu.org
2023-05-08 13:49 ` rguenther at suse dot de
2023-05-08 13:54 ` rguenth at gcc dot gnu.org
2023-05-08 13:55 ` ebotcazou at gcc dot gnu.org
2023-05-08 13:57 ` ebotcazou 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).