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: [PATCH] MIPS: If a test in the MIPS testsuite requires standard library support check the sysroot supports the required test options.



> -----Original Message-----
> From: Andrew Bennett [mailto:Andrew.Bennett@imgtec.com]
> Sent: Tuesday, July 21, 2015 10:15 AM
> To: gcc-patches@gcc.gnu.org
> Cc: Matthew Fortune; Moore, Catherine
> Subject: [PATCH] MIPS: If a test in the MIPS testsuite requires standard
> library support check the sysroot supports the required test options.
> 
> Hi,
> 
> The recent changes to the MIPS GCC Linux sysroot
> (https://gcc.gnu.org/ml/gcc-patches/2015-06/msg01014.html) have meant
> that the include directory is now not global and is provided only for each
> multi-lib configuration.  This means that for any test in the MIPS GCC
> Testsuite that requires standard library support we need to check if there is a
> multi-lib support for the test options, otherwise it might fail to compile.
> 
> This patch adds this support to the testsuite and mips.exp files.  Firstly any
> test that requires standard library support has the implicit option
> "(REQUIRES_STDLIB)" added to its dg-options.  Secondly in mips.exp a pre-
> processor check is performed to ensure that when expanding a testcase
> containing a "#include <stdlib.h>" using the current set of test options we do
> not get file not found errors.  If this happens we mark the testcase as
> unsupported.
> 
> The patch has been tested on the mti/img elf/linux-gnu toolchains, and there
> have been no new regressions.
> 
> The patch and ChangeLog are below.
> 
> Ok to commit?
> 
> 
Yes.  This looks good.


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