g++-980321/HPUX-10.20/gcov: -fprofile-arcs does not support computed gotos

Graham Hudspith geordie@lucent.com
Wed Mar 25 09:59:00 GMT 1998

Dear EGCS Maintainers,

    When I try and compile in code-coverage support into my programs,
    g++/c++ seems to think that a switch statement is actually a
    'computed goto' (yuk) and throws out the following error message:
        -fprofile-arcs does not support computed gotos
    If I change the switch statement into the equivalent if-then-else
    chain of statments, the compile succeeds.
    Config.status is:
        ../egcs-980321/configure --host=hppa1.1-hp-hpux10.20 \
           --with-gnu-as --enable-shared \
    Compile line is:
	c++ -g -ansi -DSYSV -DDEBUG -Wall -pedantic -I. \
	-Woverloaded-virtual -fprofile-arcs -ftest-coverage \
	-fno-exceptions -fno-rtti -W -I- -I. -D_TRACE_ -c \

    I shall attempt to "Attach" some source files via Netscape mail,
    so bear with me if this next bit appears like garbage (and be
    easy on my coding prowess too!) ...

    Let me know if you want any more info,

Graham Hudspith, Transmission Dev Group, | Email:
Lucent Technologies Network Systems (UK),|   
Swindon Road, Malmesbury,                |   
Wiltshire SN16 9NA, UK.                  | Phone: +44 1666 832372/822861

More information about the Gcc-bugs mailing list