[PATCH] D16171: Warning on redeclaring with a conflicting asm label

Weiming Zhao via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 14 10:38:21 PST 2016

weimingz added a comment.

Hi Nick,

Below is a reduced code:

  static long double acoshl (long double __x) __asm__ ("" "acosh") ;  // this is from <gcc4.9>/arm-linux-gnueabi/libc/usr/include/bits/mathcalls.h
  extern long double acoshl (long double) __asm__ ("" "__acoshl_finite") ; // this is from existing code

GCC gives warning like:
/tmp/t.c:2:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas]
 extern long double acoshl (long double) __asm__ ("" "__acoshl_finite") ;


More information about the cfe-commits mailing list