------- Comment #5 from darkshikari at gmail dot com 2010-04-21 22:24 ------- One somewhat unrelated issue I had when attempting to compile using LTO: we have about 5 arrays in C that are referenced from YASM-syntax assembly code. Even I add __attribute__((used)), LTO/wholeprogram seems to optimize these out in the link-time optimization step. This results in the link failing when it comes time to link the .o files for the assembly functions.
It seems conceptually wrong that it should be impossible to reference C arrays from asm code when using LTO + wholeprogram. Is there any way around this beyond copy-pasting all this data, is this a bug, or is this intended behavior? -- darkshikari at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |c http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43827