lto: from insert_attributes to file_end?

Georg-Johann Lay via Gcc <[email protected]>
Newsgroups gmane.comp.gcc.devel
Message-ID <[email protected]>
In the avr backend there is a static variable avr_no_call_main_p that
is set in TARGET_INSERT_ATTRIBUTES and used in TARGET_ASM_FILE_END.

This works as expected in non-LTO compilations, with LTO however,
TARGET_INSERT_ATTRIBUTES runs in cc1[plus] but TARGET_ASM_FILE_END
is run by lto1, hence the variable is not set as expected.

What's the recommended way to handle such a situation?

Thanks,

Johann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.