[Bug c/54952] New: Program crash on M32C when stack frame is more then 128 bytes

m.galante at centrosistemi dot it gcc-bugzilla@gcc.gnu.org
Wed Oct 17 14:54:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54952

             Bug #: 54952
           Summary: Program crash on M32C when stack frame is more then
                    128 bytes
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: m.galante@centrosistemi.it


Created attachment 28461
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28461
Test case

m32c-elf-gcc (GCC) 4.7.2 hosted on Windows XP.

If I compile and run the attached program with:

  m32c-elf-gcc -msim -mcpu=m32c -O1 -DDATASIZE=126 stack.c
  m32c-elf-run a.out

it works well. But if I increase DATASIZE to 127:

  m32c-elf-gcc -msim -mcpu=m32c -O1 -DDATASIZE=127 stack.c
  m32c-elf-run a.out

the program crashes.



More information about the Gcc-bugs mailing list