This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [testsuite] Fix std::strchr etc. prototypes for C++


On Fri, 2009-01-30 at 16:52 +0100, Jakub Jelinek wrote:
> On Thu, Jan 29, 2009 at 11:43:27AM -0800, Benjamin Kosnik wrote:
> > > Attached is also a testcase that verifies this, but we'd probably
> > > need a new tcl function to check if glibc is used and has recent
> > > enough headers to allow the testcase to pass.
> > 
> > Or you could just wrap the proposed new testcase with #ifdef
> > __CORRECT_ISO_CPP_STRING_H_PROTO for now. 
> 
> Here are testcases tested both with old and latest glibc.
> builtin10.C tests that the functions are considered builtins and optimized
> as such, 3.cc verifies the required diagnostics.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* lib/target-supports.exp
> 	(check_effective_target_correct_iso_cpp_string_wchar_protos): New.
> 	* g++.dg/ext/builtin10.C: New test.
> 
> 	* testsuite/21_strings/c_strings/char/3.cc: New test.
> 	* testsuite/21_strings/c_strings/wchar_t/3.cc: New test.

OK from a testsuite perspective.

Janis


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