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

            Bug ID: 117476
           Summary: bad generated code from -finline-small-functions
           Product: gcc
           Version: 15.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 59552
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59552&action=edit
C source code

For the attached C code:

foundBugs $ ~/gcc/results/bin/gcc -v 2>&1 | grep exp
gcc version 15.0.0 20241107 (experimental) (4473cf8409f4db19) 
foundBugs $ ~/gcc/results/bin/gcc -g -O1  bug1062.c
foundBugs $ ./a.out
checksum = 6361D861
foundBugs $ ~/gcc/results/bin/gcc -g -O1 -finline-small-functions bug1062.c
foundBugs $ ./a.out
Segmentation fault (core dumped)
foundBugs $ 

And yet a couple of days ago:

foundBugs $ ~/gcc/results.20241105.asan.ubsan/bin/gcc -v 2>&1 | grep exp
gcc version 15.0.0 20241105 (experimental) (e152a734337a06ed) 
foundBugs $ ~/gcc/results.20241105.asan.ubsan/bin/gcc -g -O1  bug1062.c &&
./a.out
checksum = 6361D861
foundBugs $ ~/gcc/results.20241105.asan.ubsan/bin/gcc -g -O1
-finline-small-functions  bug1062.c && ./a.out
checksum = 6361D861
foundBugs $

Reply via email to