public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111522] New: Different code path for static initialization with flto
@ 2023-09-21 15:04 malat at debian dot org
  2023-09-21 15:53 ` [Bug target/111522] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: malat at debian dot org @ 2023-09-21 15:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111522
           Summary: Different code path for static initialization with
                    flto
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

Created attachment 55962
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55962&action=edit
c++ code

I am seeing a difference in behavior when using -flto. Consider the following:

% c++ -std=c++11  -g -O2  -o works lto.cc
% c++ -std=c++11  -g -O2 -flto -o fails lto.cc
% ./works&& echo "success"
success
% ./fails
zsh: illegal hardware instruction  ./fails

This a POWER8 system.

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

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

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21 15:04 [Bug target/111522] New: Different code path for static initialization with flto malat at debian dot org
2023-09-21 15:53 ` [Bug target/111522] " pinskia at gcc dot gnu.org
2023-09-25  7:07 ` malat at debian dot org
2023-09-25  7:08 ` malat at debian dot org
2023-09-25  7:14 ` malat at debian dot org
2023-09-25  7:23 ` pinskia at gcc dot gnu.org
2023-09-25  9:10 ` malat at debian dot org
2023-09-25 10:28 ` malat at debian dot org
2023-09-25 10:33 ` malat at debian dot org
2023-09-25 10:34 ` malat at debian dot org
2023-09-25 10:36 ` malat at debian dot org
2023-09-29 14:41 ` malat at debian dot org
2023-10-16  9:07 ` linkw 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).