How to run LTO tests?

Erick Ochoa
Thu Dec 19 20:48:00 GMT 2019


I'm looking to create new tests for an LTO pass that I'm working on.
So, I started by trying to run the tests under the folder:

Looking at the documentation available here:

It says the following 

  In order to run sets of tests selectively, there are targets
  [...]  ‘make check-lto’ in the gcc subdirectory of the object directory.

And so, I go to gcc subdirectory of the object directory and
type make check-lto. However, I get this error message:

  make: Nothing to be done for `check-lto'.

I have looked into the Makefile, and there is indeed a check-lto
target but make outputs "Nothing to be done for `check-lto'."

Just to be complete, these are the configure flags I used
when installing gcc:

../configure \
  --disable-bootstrap \
  --disable-libsanitizer \
  --enable-__cxa_atexit \
  --enable-shared \
  --disable-libsanitizer \
  --enable-languages=c,c++,fortran \
  --enable-lto \
  --enable-gold \
  --enable-linker-build-id \
  --with-cpu-emag \

Can anyone tell me how can I run the lto tests?


More information about the Gcc mailing list