diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index 9b548c2d34cfd35da358564892de0e9c154f5b53..1c68133a8c947ab1434932b78dfa21d15aca5698 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -72,7 +72,7 @@ Boston, MA 02111-1307, USA. */ #undef ASM_GENERATE_INTERNAL_LABEL #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ - sprintf ((LABEL), "*.L%s%lu", (PREFIX), (unsigned long)(NUM)) + sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM)) /* The native TLS-enabled assembler requires the directive #tls_object to be put on objects in TLS sections (as of v7.1). This is not