http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55412
Bug #: 55412 Summary: pr47276.c fails with -fpic option. Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: treelang AssignedTo: unassig...@gcc.gnu.org ReportedBy: aivch...@gmail.com When trying to compile pr47276.c with additional -fpic option I've got the following error: pr47276.c:36:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas] extern __typeof (__vsyslog_chk) __vsyslog_chk __asm__ ("" ASMNAME ("__GI___vsyslog_chk")) __attribute__ ((visibility ("hidden"))); ^ ../../../../gcc/gcc/testsuite/gcc.dg/pr47276.c:25:123: error: ‘__EI___vsyslog_chk’ aliased to undefined symbol ‘__GI___vsyslog_chk’ extern __typeof (__vsyslog_chk) __EI___vsyslog_chk __asm__("" ASMNAME ("__vsyslog_chk")); extern __typeof (__vsyslog_chk) __EI___vsyslog_chk __attribute__((alias ("" "__GI___vsyslog_chk")));