public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH] Disallow inlining if static vars in that function contain addresses of that function's labels (PR tree-optimization/29484)
       [not found]                   ` <20080102225655.GY20451@devserv.devel.redhat.com.suse.lists.egcs-patches>
@ 2008-01-03 18:04                     ` Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2008-01-03 18:04 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: gcc

Jakub Jelinek <jakub@redhat.com> writes:

> Smalltalk example Paolo mentioned will work just fine, GCC won't
> try to inline that function, and I think we should keep it that way.

FWIW Older versions of the Linux kernel used &&label in an inline to
get the current text address for debugging output purposes. Of course
no requirement that it is unique. While that has changed it would be
good if that still worked. In particular not inlining that function would
probably cause significant code growth.

-Andi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-03 18:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4772AA08.3090101@codesourcery.com.suse.lists.egcs-patches>
     [not found] ` <Pine.LNX.4.64.0712301738380.22710@digraph.polyomino.org.uk.suse.lists.egcs-patches>
     [not found]   ` <4777EFEB.1010609@codesourcery.com.suse.lists.egcs-patches>
     [not found]     ` <20080102090724.GS20451@devserv.devel.redhat.com.suse.lists.egcs-patches>
     [not found]       ` <477BCF49.3060104@codesourcery.com.suse.lists.egcs-patches>
     [not found]         ` <20080102180329.GU20451@devserv.devel.redhat.com.suse.lists.egcs-patches>
     [not found]           ` <477BD3FA.2070904@codesourcery.com.suse.lists.egcs-patches>
     [not found]             ` <DF072A0A-1555-43ED-9069-46ADC9EE582A@apple.com.suse.lists.egcs-patches>
     [not found]               ` <477C07D7.6050904@codesourcery.com.suse.lists.egcs-patches>
     [not found]                 ` <A9980865-3DD9-4163-B29D-1272DAC1DD44@apple.com.suse.lists.egcs-patches>
     [not found]                   ` <20080102225655.GY20451@devserv.devel.redhat.com.suse.lists.egcs-patches>
2008-01-03 18:04                     ` [PATCH] Disallow inlining if static vars in that function contain addresses of that function's labels (PR tree-optimization/29484) Andi Kleen

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).