https://sourceware.org/bugzilla/show_bug.cgi?id=18414
--- Comment #2 from Hal Finkel <hfinkel at anl dot gov> --- (In reply to Alan Modra from comment #1) > True, ld will do this. However, the optimization is relying on gcc to > generate code that can be optimized this way.. So I'm assuming the example > code was from llvm or assembly. Yes, it was LLVM. > > gcc ensures that the optimization is valid by adding a dependency on r2 to > the low part of the address calculation. Indeed, I'll need to do the same in LLVM. However, it would be nice if the bug could be fixed in binutils as well. Are these kinds of restrictions documented anywhere? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils