testsuite: Fix gcc.dg/attr-copy-6.c for user-label-prefixed targets
commitb838a9f65f68f9ebe87d4cbd10ae18911a05b6ea
authorHans-Peter Nilsson <hp@axis.com>
Wed, 1 Mar 2023 16:30:07 +0000 (1 17:30 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 2 Mar 2023 01:15:00 +0000 (2 02:15 +0100)
treeb56b352166cf46637b4bd8c20ccb7f7d116fc3ea
parent8590e4d096e4636c9384f7f885b979026861c29f
testsuite: Fix gcc.dg/attr-copy-6.c for user-label-prefixed targets

This fixes:
 Running /x/gcc/testsuite/gcc.dg/dg.exp ...
 ...
 FAIL: gcc.dg/attr-copy-6.c (test for excess errors)
for cris-elf, where gcc.log has:
Excess errors:
/x/gcc/testsuite/gcc.dg/attr-copy-6.c:91:3: error: 'fnoreturn_alias' aliased to undefined symbol 'fnoreturn_name'

Asm-declared identifiers need to prepend __USER_LABEL_PREFIX__
to the asm-name, something which is often overlooked because
it's empty for most targets.  N.B: attribute-alias does not need
the same treatment.  The identical construct added here, is in
several tests.

* gcc.dg/attr-copy-6.c: Prefix asm-declared name with
__USER_LABEL_PREFIX__.
gcc/testsuite/gcc.dg/attr-copy-6.c