This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New ARI warning Fri Apr 23 02:18:56 UTC 2010


> > gdb/ppc-linux-nat.c:1511: code: inline: Do not use the inline attribute; since the compiler generally ignores this, better algorithm selection is needed to improved performance
> gdb/ppc-linux-nat.c:1511:static inline int

I checked in the attached patch to get rid of this new warning...

2010-04-23  Joel Brobecker  <brobecker@adacore.com>

        Fix ARI warning.
        * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.

-- 
Joel
Index: ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.93
diff -u -u -p -r1.93 ppc-linux-nat.c
--- ppc-linux-nat.c	22 Apr 2010 22:26:36 -0000	1.93
+++ ppc-linux-nat.c	23 Apr 2010 12:34:10 -0000
@@ -1508,7 +1508,7 @@ ppc_linux_region_ok_for_hw_watchpoint (C
 }
 
 /* This function compares two ppc_hw_breakpoint structs field-by-field.  */
-static inline int
+static int
 booke_cmp_hw_point (struct ppc_hw_breakpoint *a, struct ppc_hw_breakpoint *b)
 {
   return (a->trigger_type       == b->trigger_type

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]