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 08/16] (partially-approved): Introduce selftest::locate_file


On 10/05/2016 06:15 PM, David Malcolm wrote:
 selftest: s-selftest
 s-selftest: $(GCC_PASSES) cc1$(exeext) stmp-int-hdrs
-	$(GCC_FOR_TARGET) -xc -S -c /dev/null -fself-test
+	$(GCC_FOR_TARGET) -xc -S -c /dev/null -fself-test=$(srcdir)
 	$(STAMP) $@

I suspect the Makefile parts will need updating once Thomas commits his change.

Also,

+  return concat (path_to_src_gcc, "/testsuite/selftests/", name, NULL);

why hardcode directory names here? I think this should just be passed as a full pathname so only the Makefiles have knowledge of source directory structure.


Bernd


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