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

GCC switch to C11 causes many testsuite compiler diagnostics


Comparing my latest nios2 test results (with Pedro's thread patch) with those from a checkout a couple weeks old, I noticed I had some new ERRORs due to apparent compilation failures. I tracked this down to the recent change on GCC mainline (r216247) to make the default C dialect GNU11, which enables -Wimplicit-int and -Wimplicit-function-declaration by default. I started working on a patch to fix the offending testcases, but realized that there are hundreds of them. :-(

So, before I invest a lot more time on this, is updating the GDB testsuite to use a more modern C dialect the Right Thing To Do? I'm also wondering if it's really necessary to support compilers that can't handle function prototypes in the testsuite (not defining PROTOTYPES seems to be the default, in fact).

-Sandra


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