public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug lto/46940] New: asm aliases with linker plugin segfaults @ 2010-12-14 15:35 hubicka at gcc dot gnu.org 2010-12-14 16:21 ` [Bug lto/46940] " hubicka at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: hubicka at gcc dot gnu.org @ 2010-12-14 15:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46940 Summary: asm aliases with linker plugin segfaults Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: hubicka@gcc.gnu.org extern __attribute__((visibility("hidden"))) void _moz_foo (void); extern __typeof (_moz_foo) _moz_foo __asm__ ("" "INT__foo") __attribute__((__visibility__("hidden"))) ; void _moz_foo(void) { printf ("blah\n"); } extern __typeof (_moz_foo) EXT__foo __asm__("" "_moz_foo") __attribute__((__alias__("" "INT__foo"))); evans:/abuild/jh/trunk-3/build-inst2/gcc/:[0]# more t2.c extern void _moz_foo (void); main() { _moz_foo (); } evans:/abuild/jh/trunk-3/build-inst2/gcc/:[0]# ./xgcc -B ./ -O2 -flto t.c t2.c -fuse-linker-plugin t.c: In function ?_moz_foo?: t.c:5:3: warning: incompatible implicit declaration of built-in function ?printf? [enabled by default] lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: ./xgcc returned 1 exit status lto-wrapper failedcollect2: ld returned 1 exit status The problem here is that we get prevailing definition of _moz_foo to be alias that has no cgraph node (nor alias node) attached. Bah. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/46940] asm aliases with linker plugin segfaults 2010-12-14 15:35 [Bug lto/46940] New: asm aliases with linker plugin segfaults hubicka at gcc dot gnu.org @ 2010-12-14 16:21 ` hubicka at gcc dot gnu.org 2010-12-14 23:22 ` hubicka at gcc dot gnu.org 2010-12-14 23:23 ` hubicka at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: hubicka at gcc dot gnu.org @ 2010-12-14 16:21 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46940 Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2010.12.14 16:20:51 Blocks|45375 | Ever Confirmed|0 |1 --- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-12-14 16:20:51 UTC --- testing patch... ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/46940] asm aliases with linker plugin segfaults 2010-12-14 15:35 [Bug lto/46940] New: asm aliases with linker plugin segfaults hubicka at gcc dot gnu.org 2010-12-14 16:21 ` [Bug lto/46940] " hubicka at gcc dot gnu.org @ 2010-12-14 23:22 ` hubicka at gcc dot gnu.org 2010-12-14 23:23 ` hubicka at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: hubicka at gcc dot gnu.org @ 2010-12-14 23:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46940 --- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-12-14 23:22:27 UTC --- Author: hubicka Date: Tue Dec 14 23:22:23 2010 New Revision: 167822 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167822 Log: PR lto/46940 PR lto/44463 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Construct nodes for aliases when they are used. * gcc.dg/lto/pr46940_0.c: New testcase. * gcc.dg/lto/pr46940_1.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/lto/pr46940_0.c trunk/gcc/testsuite/gcc.dg/lto/pr46940_1.c Modified: trunk/gcc/ChangeLog trunk/gcc/lto-symtab.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/46940] asm aliases with linker plugin segfaults 2010-12-14 15:35 [Bug lto/46940] New: asm aliases with linker plugin segfaults hubicka at gcc dot gnu.org 2010-12-14 16:21 ` [Bug lto/46940] " hubicka at gcc dot gnu.org 2010-12-14 23:22 ` hubicka at gcc dot gnu.org @ 2010-12-14 23:23 ` hubicka at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: hubicka at gcc dot gnu.org @ 2010-12-14 23:23 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46940 Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-12-14 23:23:11 UTC --- Fixed. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-14 23:23 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-12-14 15:35 [Bug lto/46940] New: asm aliases with linker plugin segfaults hubicka at gcc dot gnu.org 2010-12-14 16:21 ` [Bug lto/46940] " hubicka at gcc dot gnu.org 2010-12-14 23:22 ` hubicka at gcc dot gnu.org 2010-12-14 23:23 ` hubicka 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).