public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug treelang/55412] New: pr47276.c fails with -fpic option. @ 2012-11-20 10:57 aivchenk at gmail dot com 2012-11-20 12:15 ` [Bug treelang/55412] " jakub at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: aivchenk at gmail dot com @ 2012-11-20 10:57 UTC (permalink / raw) To: gcc-bugs 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: unassigned@gcc.gnu.org ReportedBy: aivchenk@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"))); ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug treelang/55412] pr47276.c fails with -fpic option. 2012-11-20 10:57 [Bug treelang/55412] New: pr47276.c fails with -fpic option aivchenk at gmail dot com @ 2012-11-20 12:15 ` jakub at gcc dot gnu.org 2012-11-21 7:46 ` aivchenk at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2012-11-20 12:15 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55412 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-20 12:15:01 UTC --- This fails all the way back to gcc 4.0 this way, and given that glibc itself builds fine even with gcc 4.7, I assume the testcase just doesn't match what glibc contained accurately. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug treelang/55412] pr47276.c fails with -fpic option. 2012-11-20 10:57 [Bug treelang/55412] New: pr47276.c fails with -fpic option aivchenk at gmail dot com 2012-11-20 12:15 ` [Bug treelang/55412] " jakub at gcc dot gnu.org @ 2012-11-21 7:46 ` aivchenk at gmail dot com 2012-11-21 7:48 ` aivchenk at gmail dot com 2021-12-11 19:08 ` [Bug middle-end/55412] " pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: aivchenk at gmail dot com @ 2012-11-21 7:46 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55412 --- Comment #2 from Alexander Ivchenko <aivchenk at gmail dot com> 2012-11-21 07:46:20 UTC --- Created attachment 28751 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28751 Simple reproducer ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug treelang/55412] pr47276.c fails with -fpic option. 2012-11-20 10:57 [Bug treelang/55412] New: pr47276.c fails with -fpic option aivchenk at gmail dot com 2012-11-20 12:15 ` [Bug treelang/55412] " jakub at gcc dot gnu.org 2012-11-21 7:46 ` aivchenk at gmail dot com @ 2012-11-21 7:48 ` aivchenk at gmail dot com 2021-12-11 19:08 ` [Bug middle-end/55412] " pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: aivchenk at gmail dot com @ 2012-11-21 7:48 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55412 --- Comment #3 from Alexander Ivchenko <aivchenk at gmail dot com> 2012-11-21 07:48:23 UTC --- I tried to narrow down the problem and changed the test a little bit. (The relative order of declarations remains the same; Just grouped the coupled declarations) This changed test passes with -fno-pic and fails with -fpic. BUT if we comment out the first group of definition/declarations the test will fail with -fno-pic with the same problem, eventhough those two groups are completely independent of each other test case is attached in the previous comment ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/55412] pr47276.c fails with -fpic option. 2012-11-20 10:57 [Bug treelang/55412] New: pr47276.c fails with -fpic option aivchenk at gmail dot com ` (2 preceding siblings ...) 2012-11-21 7:48 ` aivchenk at gmail dot com @ 2021-12-11 19:08 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-11 19:08 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55412 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, rejects-valid Target Milestone|--- |5.0 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed in GCC 5. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-12-11 19:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-11-20 10:57 [Bug treelang/55412] New: pr47276.c fails with -fpic option aivchenk at gmail dot com 2012-11-20 12:15 ` [Bug treelang/55412] " jakub at gcc dot gnu.org 2012-11-21 7:46 ` aivchenk at gmail dot com 2012-11-21 7:48 ` aivchenk at gmail dot com 2021-12-11 19:08 ` [Bug middle-end/55412] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).