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



             Bug #: 55194

           Summary: h8300 ICE during conftest in libgcc dwarf2out:7605

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: target

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: j...@gcc.gnu.org





When building newlib using the gcc-svn head, the compiler generates assembly

language that cannot be assembled by the binutils cvs head or 2.22



xgcc (GCC) 4.8.0 20121103 (experimental) [trunk revision 193124]



This is enough to trip the bug:



/home/joel/v850/tools/b-gcc-svn/./gcc/xgcc

-B/home/joel/v850/tools/b-gcc-svn/./gcc/ -c -O2 -g h8300_bug.c 



Dropping the -g is sufficient to let it compile.



Test case is very basic:



int main(int argc, char **argv)

{

  return 0;

}



The full command line:



configure:3374:  /home/joel/v850/tools/b-gcc-svn/./gcc/xgcc

-B/home/joel/v850/tools/b-gcc-svn/./gcc/ -nostdinc

-B/home/joel/v850/tools/b-gcc-svn/h8300-rtems4.11/newlib/ -isystem

/home/joel/v850/tools/b-gcc-svn/h8300-rtems4.11/newlib/targ-include -isystem

/home/joel/v850/tools/gcc-svn/newlib/libc/include

-B/home/joel/v850/install/h8300-rtems4.11/bin/

-B/home/joel/v850/install/h8300-rtems4.11/lib/ -isystem

/home/joel/v850/install/h8300-rtems4.11/include -isystem

/home/joel/v850/install/h8300-rtems4.11/sys-include    -o conftest -g -O2  

conftest.c  >&5

conftest.c:16:1: internal compiler error: in value_format, at dwarf2out.c:7605

 }

 ^

0x8266d9f value_format

        ../../gcc-svn/gcc/dwarf2out.c:7605

0x8284966 output_value_format

        ../../gcc-svn/gcc/dwarf2out.c:7618

0x8284966 output_abbrev_section

        ../../gcc-svn/gcc/dwarf2out.c:7651

0x8284966 dwarf2out_finish

        ../../gcc-svn/gcc/dwarf2out.c:22527

Reply via email to