On 11/14/2016 08:18 AM, Bernd Schmidt wrote: > On 11/11/2016 06:10 PM, Aldy Hernandez wrote: >> The problem in this PR is that -fself-test is being run on a non empty >> source file. This causes init_emit() to run, which sets: >> >> REG_POINTER (virtual_incoming_args_rtx) = 1; >> >> Setting REG_POINTER on the virtual incoming args, causes /f to be >> printed on some RTL dumps, causing the -fself-test machinery to fail at >> matching the expected value. > > How about always running init_emit and testing for the correct output? I would prefer Jakub's suggestion of running in finish_options(). I assume there are other places throughout the self-tests that depend on NOT continuing the compilation process, and I'd hate to plug each one. Would the attached patch be acceptable to both of you? Aldy