This is the mail archive of the gdb-cvs@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]

[binutils-gdb] testsuite: Fix gdb.arch/powerpc-prologue.c compilation


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8f1a8fc4df2244f548d55fbecce20b7cd6f90e16

commit 8f1a8fc4df2244f548d55fbecce20b7cd6f90e16
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Oct 11 19:09:05 2016 +0200

    testsuite: Fix gdb.arch/powerpc-prologue.c compilation
    
    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.

Diff:
---
 gdb/testsuite/ChangeLog                   | 4 ++++
 gdb/testsuite/gdb.arch/powerpc-prologue.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b6ba0ec..b4ccd4a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
 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
 	* gdb.arch/ppc64-symtab-cordic.exp: Likewise.
 	* gdb.arch/vsx-regs.exp: Likewise.
diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue.c b/gdb/testsuite/gdb.arch/powerpc-prologue.c
index 6c10dfc..a1b8065 100644
--- a/gdb/testsuite/gdb.arch/powerpc-prologue.c
+++ b/gdb/testsuite/gdb.arch/powerpc-prologue.c
@@ -24,6 +24,7 @@
 #endif
 
 void gdb2029 (void);
+void optimized_1 (void);
 
 int
 main (void)


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