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]

[PATCH] Make check_effective_target_c++ work for libstdc++


I've been working on some changes to let the libstdc++ testsuite use
the same approach as G++ to specify a minimum language dialect for
tests. That means instead of hardcoding { dg-options "-std=gnu++11" }
we can use { dg-do run { target c++11 } } and the test will be run for
any implicit or explicit -std mode that meets that minimum.

For that to work I need check_effective_target_c++ to return true when
the dg tool is "libstdc++".

The patch looks a bit messy, because it's fixing some messy
indentiation.

Tested x86_64-linux.

OK for trunk?

	* lib/target-supports.exp (check_effective_target_c): Fix indentation.
	(check_effective_target_c++): Likewise. Also match for libstdc++.

Attachment: patch.txt
Description: Text document


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