This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, <danglin at gcc dot gnu dot org>, John David Anglin <dave dot anglin at bell dot net>, James Norris <jnorris at codesourcery dot com>, Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 04 May 2015 15:26:35 +0200
- Subject: Re: [PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
- Authentication-results: sourceware.org; auth=none
- References: <54FF0C91 dot 8020307 at mentor dot com> <871tj1rdfc dot fsf at schwinge dot name> <87pp6gvj3v dot fsf at kepler dot schwinge dot homeip dot net>
Thomas Schwinge <thomas@codesourcery.com> writes:
> Additionally to the "%p" format specifier printing a "0x" prefix vs. not
> doing that, I've also changed the expected "(nil)" output for NULL
> pointers to instead match basically everything.
You cannot expect printf to print "(nil)" or variant for NULL pointers.
E.g. on Solaris 10 you get a SEGV instead.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University