This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
Re: GNU gdb (GDB) 7.8.50.20141016-cvs s390x-ibm-linux-gnu GIT commit: 459609d6f8f65d4b4440385499b84cc8c1804f65
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>, gdb-testers at sourceware dot org
- Date: Fri, 17 Oct 2014 14:05:55 +0200
- Subject: Re: GNU gdb (GDB) 7.8.50.20141016-cvs s390x-ibm-linux-gnu GIT commit: 459609d6f8f65d4b4440385499b84cc8c1804f65
- Authentication-results: sourceware.org; auth=none
- References: <201410160258 dot s9G2wJEX024026 at d06av09 dot portsmouth dot uk dot ibm dot com> <543F87F7 dot 5090509 at redhat dot com>
On Thu, Oct 16 2014, Pedro Alves wrote:
> On 10/16/2014 03:58 AM, Andreas Krebbel wrote:
>> Test Run By dailybuild on Thu Oct 16 04:50:52 2014
>> Native configuration is s390x-ibm-linux-gnu
>>
>> === gdb tests ===
>>
>> [...]
>> gdb compile failed, /gdb/testsuite/gdb.base/run.c: In function 'main':
>> /gdb/testsuite/gdb.base/run.c:28:18: warning: implicit declaration of function 'factorial' [-Wimplicit-function-declaration]
>> printf ("%d\n", factorial (atoi (argv[1])));
>> ^
>> gdb compile failed, /gdb/testsuite/gdb.base/advance.c: In function 'func':
>> /gdb/testsuite/gdb.base/advance.c:19:3: warning: implicit declaration of function 'func2' [-Wimplicit-function-declaration]
>> func2 ();
>> ^
>
> This sounds like fallout from gcc trunk's switch to gnu11 by default.
Exactly.
> I'm assuming that if we got as far as testing, then GDB itself
> built with that, which is the good part. :-)
Right, and even testing didn't go too bad either. The test suite always
barks "gdb compile failed" whenever gcc yields any unwanted output, but
then it continues anyhow.
I guess I'll provide a patch for fixing the GCC warnings in the GDB test
cases. Another option might be to suppress them (like with -std=gnu89),
but I'd rather clean the mess than hide it.