]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
gcc-4.7.0 complains about some __attribute__((always_inline)) here,
authorJulian Seward <jseward@acm.org>
Sat, 31 Mar 2012 00:06:04 +0000 (00:06 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 31 Mar 2012 00:06:04 +0000 (00:06 +0000)
so change them back to vanilla ones.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12473

coregrind/m_debuginfo/tytypes.c

index 8308012ffa61b9aedab1ce5221b69cb9ab422dfe..580df5f967d04b19a89fc97a60bdc0e0e13e3d76 100644 (file)
@@ -420,29 +420,29 @@ Word ML_(TyEnt__cmp_by_cuOff_only) ( TyEnt* te1, TyEnt* te2 )
 
 /* Generates a total ordering on TyEnts based on everything except
    their .cuOff fields. */
-static __attribute__((always_inline)) Word UWord__cmp ( UWord a, UWord b ) {
+static inline Word UWord__cmp ( UWord a, UWord b ) {
    if (a < b) return -1;
    if (a > b) return 1;
    return 0;
 }
-static __attribute__((always_inline)) Word Long__cmp ( Long a, Long b ) {
+static inline Word Long__cmp ( Long a, Long b ) {
    if (a < b) return -1;
    if (a > b) return 1;
    return 0;
 }
-static __attribute__((always_inline)) Word Bool__cmp ( Bool a, Bool b ) {
+static inline Word Bool__cmp ( Bool a, Bool b ) {
    vg_assert( ((UWord)a) <= 1 );
    vg_assert( ((UWord)b) <= 1 );
    if (a < b) return -1;
    if (a > b) return 1;
    return 0;
 }
-static __attribute__((always_inline)) Word UChar__cmp ( UChar a, UChar b ) {
+static inline Word UChar__cmp ( UChar a, UChar b ) {
    if (a < b) return -1;
    if (a > b) return 1;
    return 0;
 }
-static __attribute__((always_inline)) Word Int__cmp ( Int a, Int b ) {
+static inline Word Int__cmp ( Int a, Int b ) {
    if (a < b) return -1;
    if (a > b) return 1;
    return 0;