Public bug reported:

If I compile the attached file with -O3, gcc produces an empty function
(simply returns 0). If I compile without -O3, gcc produces viable code
that functions as expected.

Linux outhouse 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC
2020 x86_64 x86_64 x86_64 GNU/Linux

gcc  4:9.3.0-1ubuntu2

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Attachment added: "Sample program that demonstrates problem"
   
https://bugs.launchpad.net/bugs/1909838/+attachment/5448643/+files/match_fcb.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1909838

Title:
  gcc -O3 produces invalid code

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1909838/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to