public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cesarb at nitnet dot com dot br" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/9079] [tree-ssa] Inline constant function pointers Date: Fri, 21 May 2004 01:50:00 -0000 [thread overview] Message-ID: <20040520001003.10898.qmail@sourceware.org> (raw) In-Reply-To: <20021228032605.9079.173513@bugs.debian.org> ------- Additional Comments From cesarb at nitnet dot com dot br 2004-05-20 00:10 ------- I just hit this bug in a hairy piece of code which I reduced to the testcase below (a should compile to the same thing as expected). It's the same as this bug but with two layers of indirection instead of one. #define inline inline __attribute__((always_inline)) #define regparm __attribute__((regparm(3))) extern void regparm f(void); static inline void regparm e(void) { f(); } static inline void regparm d(void) { f(); } static inline void regparm c(int x, void (regparm *p1)(void), void (regparm *p2)(void)) { if (x) p1(); else p2(); } static inline void regparm b(int x, void (regparm *p)(int x, void (regparm *p1)(void), void (regparm *p2)(void))) { p(x, d, e); } void regparm a(int x) { b(x, c); } void regparm expected(int x __attribute__((unused))) { f(); } -- What |Removed |Added ---------------------------------------------------------------------------- CC| |cesarb at nitnet dot com dot | |br http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9079
next prev parent reply other threads:[~2004-05-20 0:10 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20021228032605.9079.173513@bugs.debian.org> 2003-07-08 0:53 ` [Bug optimization/9079] " pinskia at physics dot uc dot edu 2003-07-08 4:50 ` doko at cs dot tu-berlin dot de 2003-07-08 10:46 ` pinskia at physics dot uc dot edu 2004-04-21 2:38 ` [Bug optimization/9079] [tree-ssa] " pinskia at gcc dot gnu dot org 2004-04-21 2:38 ` [Bug optimization/9079] " pinskia at gcc dot gnu dot org 2004-04-21 2:40 ` [Bug optimization/9079] [tree-ssa] " pinskia at gcc dot gnu dot org 2004-05-17 16:52 ` [Bug tree-optimization/9079] " pinskia at gcc dot gnu dot org 2004-05-18 3:54 ` pinskia at gcc dot gnu dot org 2004-05-21 1:50 ` cesarb at nitnet dot com dot br [this message] 2004-05-22 18:26 ` pinskia at gcc dot gnu dot org 2004-05-24 11:49 ` pinskia at gcc dot gnu dot org 2004-12-13 22:25 ` sxanth at ceid dot upatras dot gr 2005-01-23 15:14 ` steven at gcc dot gnu dot org 2005-01-23 15:18 ` pinskia at gcc dot gnu dot org 2005-02-12 23:08 ` pinskia at gcc dot gnu dot org [not found] <bug-9079-4639@http.gcc.gnu.org/bugzilla/> 2006-07-24 19:41 ` pinskia at gcc dot gnu dot org 2007-07-13 15:47 ` pinskia at gcc dot gnu dot org 2008-03-28 2:39 ` rusty at rustcorp dot com dot au 2008-03-28 10:14 ` rguenth at gcc dot gnu dot org 2008-04-01 14:51 ` jamborm at gcc dot gnu dot org 2008-07-25 17:52 ` jamborm at gcc dot gnu dot org 2008-10-22 15:11 ` jamborm at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040520001003.10898.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).