This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Fatal signal using -fprofile-arcs -ftest-coverage
- To: kent at erlang dot ericsson dot se
- Subject: Re: Fatal signal using -fprofile-arcs -ftest-coverage
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 31 Oct 1998 02:46:23 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <19980309172724K.kent@erlang.ericsson.se>you write:
>
> 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;
> }
> ---------------------------------------------------------------------------
Instead of aborting the compiler now issues an error for this code.
jeff