From: Claudiu Zissulescu Date: Tue, 31 Mar 2020 12:00:04 +0000 (+0300) Subject: arc: Cleanup compilation warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d08a318b4fdf92f6e57116349f37195fbc085b9e;p=gcc.git arc: Cleanup compilation warning gcc/ xxxx-xx-xx Claudiu Zissulescu * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 928c7939925..9da7a4a76b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,10 +1,14 @@ +2020-03-31 Claudiu Zissulescu + + * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it. + 2020-03-31 Srinath Parvathaneni * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic variant. (__arm_vbicq): Likewise. -2020-0-31 Vineet Gupta +2020-03-31 Vineet Gupta * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700. diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index be1d5cb21e7..fd6e21adfaa 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -1136,9 +1136,9 @@ do { \ /* Store in OUTPUT a string (made with alloca) containing an assembler-name for a local static variable named NAME. LABELNO is an integer which is different for each call. */ -#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \ -( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 10), \ - sprintf ((OUTPUT), "%s.%d", (NAME), (LABELNO))) +#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \ + ((OUTPUT) = (char *) alloca (strlen ((NAME)) + 10), \ + sprintf ((OUTPUT), "%s.%u", (NAME), (unsigned int)(LABELNO))) /* The following macro defines the format used to output the second operand of the .type assembler directive. Different svr4 assemblers