mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
Fix gdb.multi/base.exp testsuite regression
Regressed by: commit 762f774785f4ef878ac4c831e1f4733dc957234d Author: Pedro Alves <palves@redhat.com> Date: Thu Dec 10 16:21:06 2015 +0000 Stop using nowarnings in gdb/testsuite/gdb.multi/ +gdb compile failed, gdb/testsuite/gdb.multi/hello.c: In function 'commonfun': +gdb/testsuite/gdb.multi/hello.c:24:19: warning: implicit declaration of function 'bar' [-Wimplicit-function-declaration] + int commonfun() { bar(); } /* from hello */ + ^ +gdb/testsuite/gdb.multi/hello.c: At top level: +gdb/testsuite/gdb.multi/hello.c:26:1: warning: return type defaults to 'int' [-Wimplicit-int] + bar() + ^ +gdb/testsuite/gdb.multi/hello.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] + hello(int x) + ^ +gdb/testsuite/gdb.multi/hello.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] + main() + ^ +UNTESTED: gdb.multi/base.exp: base.exp gdb/testsuite/ChangeLog 2016-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.multi/goodbye.c: Fix compilation warnings by adding return types and reordering the functions. * gdb.multi/hangout.c: Likewise. * gdb.multi/hello.c: Likewise.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2016-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* gdb.multi/goodbye.c: Fix compilation warnings by adding return types
|
||||||
|
and reordering the functions.
|
||||||
|
* gdb.multi/hangout.c: Likewise.
|
||||||
|
* gdb.multi/hello.c: Likewise.
|
||||||
|
|
||||||
2016-01-08 Simon Marchi <simon.marchi@ericsson.com>
|
2016-01-08 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* gdb.perf/lib/perftest/perftest.py: Change relative imports to
|
* gdb.perf/lib/perftest/perftest.py: Change relative imports to
|
||||||
|
@ -39,6 +39,23 @@ int verylongfun()
|
|||||||
glob *= 9;
|
glob *= 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
mailand()
|
||||||
|
{
|
||||||
|
glob = 46;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
foo(int x) {
|
||||||
|
return x + 92;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
goodbye() {
|
||||||
|
++glob;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
main() {
|
main() {
|
||||||
mailand();
|
mailand();
|
||||||
foo(glob);
|
foo(glob);
|
||||||
@ -46,17 +63,4 @@ main() {
|
|||||||
goodbye();
|
goodbye();
|
||||||
}
|
}
|
||||||
|
|
||||||
foo(int x) {
|
|
||||||
return x + 92;
|
|
||||||
}
|
|
||||||
|
|
||||||
mailand()
|
|
||||||
{
|
|
||||||
glob = 46;
|
|
||||||
}
|
|
||||||
|
|
||||||
void commonfun() { mailand(); } /* from goodbye */
|
void commonfun() { mailand(); } /* from goodbye */
|
||||||
|
|
||||||
goodbye() {
|
|
||||||
++glob;
|
|
||||||
}
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -21,20 +21,23 @@ short hglob = 1;
|
|||||||
|
|
||||||
short glob = 92;
|
short glob = 92;
|
||||||
|
|
||||||
int commonfun() { bar(); } /* from hello */
|
void
|
||||||
|
|
||||||
bar()
|
bar()
|
||||||
{
|
{
|
||||||
if (glob == 0)
|
if (glob == 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int commonfun() { bar(); } /* from hello */
|
||||||
|
|
||||||
|
int
|
||||||
hello(int x)
|
hello(int x)
|
||||||
{
|
{
|
||||||
x *= 2;
|
x *= 2;
|
||||||
return x + 45;
|
return x + 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
int tmpx;
|
int tmpx;
|
||||||
|
Reference in New Issue
Block a user