On 03/16/2018 08:32 AM, Manuel Lauss wrote:
Hello, Is there a guideline on how to best investigate LTO-related runtime failures? I've found that gcc-8 r258566 miscompiles ffmpeg-3.4.2 when built with lto, and I'd like to prepare a proper bug report.
The GCC Wiki has some suggestions: https://gcc.gnu.org/wiki/DebuggingGCC https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction I described the approach to debugging general optimizer problems that involve large numbers of functions or multiple files and that has worked for me in this response: https://gcc.gnu.org/ml/gcc/2018-02/msg00040.html Martin