[Bug c/83213] New: peephole bug with -O2

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 29 10:20:00 GMT 2017


            Bug ID: 83213
           Summary: peephole bug with -O2
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 42741
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42741&action=edit
gzipped C source code

The attached C code, when compiled by recent gcc trunk and flag -O2,
does this:

zend_vm_execute.h:63744:1: error: No region crossing jump at section boundary
in bb 2545

It compiled fine without the -O2 flag.

I'll have a go at finding a range of gcc revisions where
the problem seems to occur and I'll have a go at reducing the code.

I make this the 400th bug I've reported since Oct 2010.

More information about the Gcc-bugs mailing list