testsuite: Fix gdb.arch/powerpc-prologue.c compilation
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 11 Oct 2016 17:09:05 +0000 (19:09 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 11 Oct 2016 17:09:05 +0000 (19:09 +0200)
gcc-6.2.1

gdb compile failed, gdb/testsuite/gdb.arch/powerpc-prologue.c: In function 'main':
gdb/testsuite/gdb.arch/powerpc-prologue.c:32:3: warning: implicit declaration of function 'optimized_1' [-Wimplicit-function-declaration]
   optimized_1 ();
   ^~~~~~~~~~~

gdb/testsuite/ChangeLog
2016-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb.arch/powerpc-prologue.c (optimized_1): New declaration.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/powerpc-prologue.c

index b6ba0ecb47045b6359193dd595435c70a7dac9c7..b4ccd4aca57041400a9b3ec3e2779709406f4195 100644 (file)
@@ -1,3 +1,7 @@
+2016-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.arch/powerpc-prologue.c (optimized_1): New declaration.
+
 2016-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.arch/powerpc-prologue.exp: Use standard_output_file
index 6c10dfc83dbb70723b475944af17927d21f06473..a1b80654edc8805d4b6ef3abc284b61939134aba 100644 (file)
@@ -24,6 +24,7 @@
 #endif
 
 void gdb2029 (void);
+void optimized_1 (void);
 
 int
 main (void)