+2012-09-18  Ian Lance Taylor  <iant@google.com>
+
+       * btest.c (test1, test2, test3, test4): Add the unused attribute.
+
 2012-09-18  Ian Lance Taylor  <iant@google.com>
 
        * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
 
 
 /* Test the backtrace function with non-inlined functions.  */
 
-static int test1 (void) __attribute__ ((noinline));
+static int test1 (void) __attribute__ ((noinline, unused));
 static int f2 (int) __attribute__ ((noinline));
 static int f3 (int, int) __attribute__ ((noinline));
 
 
 /* Test the backtrace function with inlined functions.  */
 
-static inline int test2 (void) __attribute__ ((always_inline));
+static inline int test2 (void) __attribute__ ((always_inline, unused));
 static inline int f12 (int) __attribute__ ((always_inline));
 static inline int f13 (int, int) __attribute__ ((always_inline));
 
 
 /* Test the backtrace_simple function with non-inlined functions.  */
 
-static int test3 (void) __attribute__ ((noinline));
+static int test3 (void) __attribute__ ((noinline, unused));
 static int f22 (int) __attribute__ ((noinline));
 static int f23 (int, int) __attribute__ ((noinline));
 
 
 /* Test the backtrace_simple function with inlined functions.  */
 
-static inline int test4 (void) __attribute__ ((always_inline));
+static inline int test4 (void) __attribute__ ((always_inline, unused));
 static inline int f32 (int) __attribute__ ((always_inline));
 static inline int f33 (int, int) __attribute__ ((always_inline));