This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fatal signal using -fprofile-arcs -ftest-coverage



problem:	fatal signal when using "-fprofile-arcs -ftest-coverage"
version:	EGCS 1.0.1 and GCC 2.8.1 (with no patches)
uname -a:	SunOS gollum 5.5.1 Generic_103640-03 sun4u sparc SUNW,Ultra-1
command:	gcc -fprofile-arcs -ftest-coverage test.c
error msg:	gcc: Internal compiler error: program cc1 got fatal signal 6

---------------------------------------------------------------------------
int x = 1;

int main()
{
  __label__ foo;

  void *bar = &&foo;

  if (x) goto *bar;

 foo:
  return 1;
}
---------------------------------------------------------------------------

Abort is called from branch_prob() in "profile.c"

                /* Must be an IF_THEN_ELSE branch.  */
                if (GET_CODE (tem) != IF_THEN_ELSE)
                  abort ();

when GET_CODE (tem) == REG.

/kgb


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]