profiling fails on arm-linux

Philip Blundell pb@futuretv.com
Fri Nov 3 04:06:00 GMT 2000


Compiling even trivial files such as "foo() { }" seems to fail with profiling 
enabled on ARM.

/home/pb/c.i:0: Internal compiler error in get_insn_template, at final.c:2069
   Please submit a full bug report.
   See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

#1  0x81a595b in get_insn_template (code=255, insn=0x0)
    at /labs/src/cygnus/gcc/gcc/final.c:2069
#2  0x807cf3f in compile_file (name=0x40111ac0 "/home/pb/c.i")
    at /labs/src/cygnus/gcc/gcc/toplev.c:2323
#3  0x8080e20 in main (argc=3, argv=0xbffff884)
    at /labs/src/cygnus/gcc/gcc/toplev.c:4843

This is the offending call to get_insn_template.

  if (profile_flag || profile_block_flag)
    {
      /* It's best if we can write a nop here since some
	 assemblers don't tolerate zeros in the text section.  */
      output_asm_insn (get_insn_template (CODE_FOR_nop, NULL), NULL_PTR);
    }

p.




More information about the Gcc-bugs mailing list