soft-fp: Use __label__ for all labels within macros.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jan 2015 22:39:26 +0000 (22:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jan 2015 22:39:26 +0000 (22:39 +0000)
commitd7423856b5949401e08136d8db8ece1d9dc229f9
tree5fbd1b0440cbd91ac885673fbd1f770d14203ccc
parent6b2ba95b6baab6b1789e8823c8a808e09bc98794
soft-fp: Use __label__ for all labels within macros.

soft-fp has various macros containing labels and goto statements.
Because label names are function-scoped, this is problematic for using
the same macro more than once within a function, which some
architectures do in the Linux kernel (the soft-fp version there
predates the addition of any of these labels and gotos).  This patch
fixes this by using __label__ to make the labels local to the block
with the __label__ declaration.

Tested for powerpc-nofpu that installed stripped shared libraries are
unchanged by this patch.

* soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
__label__.
(_FP_FMA): Likewise.
(_FP_TO_INT_ROUND): Likewise.
(_FP_FROM_INT): Likewise.
ChangeLog
soft-fp/op-common.h