public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/47926] New: [x32] nested function pointer doesn't work @ 2011-02-28 17:13 hjl.tools at gmail dot com 2011-02-28 19:38 ` [Bug target/47926] " hjl at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: hjl.tools at gmail dot com @ 2011-02-28 17:13 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47926 Summary: [x32] nested function pointer doesn't work Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: hjl.tools@gmail.com [hjl@gnu-6 ilp32-25]$ cat x.c void callme (void (*callback) (void)); int tryme (void) { int ok = 0; void callback (void) { ok = 1; } callme (&callback); return ok; } [hjl@gnu-6 ilp32-25]$ make /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -g x.c x.c: In function ‘tryme’: x.c:3:1: internal compiler error: in emit_move_insn, at expr.c:3355 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make: *** [x.s] Error 1 [hjl@gnu-6 ilp32-25]$ ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/47926] [x32] nested function pointer doesn't work 2011-02-28 17:13 [Bug target/47926] New: [x32] nested function pointer doesn't work hjl.tools at gmail dot com @ 2011-02-28 19:38 ` hjl at gcc dot gnu.org 2011-03-01 17:31 ` hjl at gcc dot gnu.org 2011-07-26 22:12 ` ubizjak at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: hjl at gcc dot gnu.org @ 2011-02-28 19:38 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47926 --- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-02-28 19:12:24 UTC --- Author: hjl Date: Mon Feb 28 19:12:18 2011 New Revision: 170571 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170571 Log: Always use ptr_mode on address. 2011-02-28 H.J. Lu <hongjiu.lu@intel.com> PR target/47926 * config/i386/i386.c (ix86_trampoline_init): Always use ptr_mode on address. Modified: branches/x32/gcc/ChangeLog.x32 branches/x32/gcc/config/i386/i386.c ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/47926] [x32] nested function pointer doesn't work 2011-02-28 17:13 [Bug target/47926] New: [x32] nested function pointer doesn't work hjl.tools at gmail dot com 2011-02-28 19:38 ` [Bug target/47926] " hjl at gcc dot gnu.org @ 2011-03-01 17:31 ` hjl at gcc dot gnu.org 2011-07-26 22:12 ` ubizjak at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: hjl at gcc dot gnu.org @ 2011-03-01 17:31 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47926 --- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-03-01 17:31:35 UTC --- Author: hjl Date: Tue Mar 1 17:31:31 2011 New Revision: 170598 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170598 Log: Use movl to load trampoline address for x32. 2011-03-01 H.J. Lu <hongjiu.lu@intel.com> PR target/47926 * config/i386/i386.c (ix86_trampoline_init): Use movl instead of movabs for x32. Modified: branches/x32/gcc/ChangeLog.x32 branches/x32/gcc/config/i386/i386.c ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/47926] [x32] nested function pointer doesn't work 2011-02-28 17:13 [Bug target/47926] New: [x32] nested function pointer doesn't work hjl.tools at gmail dot com 2011-02-28 19:38 ` [Bug target/47926] " hjl at gcc dot gnu.org 2011-03-01 17:31 ` hjl at gcc dot gnu.org @ 2011-07-26 22:12 ` ubizjak at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: ubizjak at gmail dot com @ 2011-07-26 22:12 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47926 Uros Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x32 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.7.0 --- Comment #3 from Uros Bizjak <ubizjak at gmail dot com> 2011-07-26 22:12:34 UTC --- Fixed. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-26 22:12 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-02-28 17:13 [Bug target/47926] New: [x32] nested function pointer doesn't work hjl.tools at gmail dot com 2011-02-28 19:38 ` [Bug target/47926] " hjl at gcc dot gnu.org 2011-03-01 17:31 ` hjl at gcc dot gnu.org 2011-07-26 22:12 ` ubizjak at gmail dot com
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).