public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Kill inlining failed warnings on ia64 and ppc64
@ 2004-08-06 15:06 Jakub Jelinek
  2004-08-06 17:56 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2004-08-06 15:06 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

These routines are good candidates for inlining, so help
GCC a little.  Perhaps we should have different macros like:
__must_inline__
and
__should_inline__
(both ATM defined to __attribute__ ((always_inline)), but at
least would document if the code will not run at all if it is
not inlined or if it will run, but inline alone is not enough
to convince the compiler).

2004-08-06  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
	always_inline.
	* sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
	elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.

--- libc/sysdeps/ia64/dl-machine.h	10 Mar 2004 22:10:11 -0000	1.1.1.29
+++ libc/sysdeps/ia64/dl-machine.h	6 Aug 2004 12:51:44 -0000	1.26
@@ -460,7 +460,7 @@ elf_machine_runtime_setup (struct link_m
 #define elf_machine_profile_plt(reloc_addr) ((Elf64_Addr) (reloc_addr))
 
 /* Fixup a PLT entry to bounce directly to the function at VALUE.  */
-static inline Elf64_Addr
+static inline Elf64_Addr __attribute__ ((always_inline))
 elf_machine_fixup_plt (struct link_map *l, lookup_t t,
 		       const Elf64_Rela *reloc,
 		       Elf64_Addr *reloc_addr, Elf64_Addr value)
--- libc/sysdeps/powerpc/powerpc64/dl-machine.h	16 Jul 2004 08:43:48 -0000	1.1.1.13
+++ libc/sysdeps/powerpc/powerpc64/dl-machine.h	6 Aug 2004 12:51:44 -0000	1.14
@@ -384,7 +384,7 @@ DL_STARTING_UP_DEF							\
 
 /* Set up the loaded object described by MAP so its unrelocated PLT
    entries will jump to the on-demand fixup code in dl-runtime.c.  */
-static inline int
+static inline int __attribute__ ((always_inline))
 elf_machine_runtime_setup (struct link_map *map, int lazy, int profile)
 {
   if (map->l_info[DT_JMPREL])
@@ -481,7 +481,7 @@ elf_machine_runtime_setup (struct link_m
 
 /* Change the PLT entry whose reloc is 'reloc' to call the actual
    routine.  */
-static inline Elf64_Addr
+static inline Elf64_Addr __attribute__ ((always_inline))
 elf_machine_fixup_plt (struct link_map *map, lookup_t sym_map,
 		       const Elf64_Rela *reloc,
 		       Elf64_Addr *reloc_addr, Elf64_Addr finaladdr)
@@ -523,7 +523,7 @@ elf_machine_fixup_plt (struct link_map *
   return finaladdr;
 }
 
-static inline void
+static inline void __attribute__ ((always_inline))
 elf_machine_plt_conflict (Elf64_Addr *reloc_addr, Elf64_Addr finaladdr)
 {
   Elf64_FuncDesc *plt = (Elf64_FuncDesc *) reloc_addr;

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Kill inlining failed warnings on ia64 and ppc64
  2004-08-06 15:06 [PATCH] Kill inlining failed warnings on ia64 and ppc64 Jakub Jelinek
@ 2004-08-06 17:56 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2004-08-06 17:56 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

Applied.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-06 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 15:06 [PATCH] Kill inlining failed warnings on ia64 and ppc64 Jakub Jelinek
2004-08-06 17:56 ` Ulrich Drepper

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