https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96700

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #1 from Jim Wilson <wilson at gcc dot gnu.org> ---
The testcase is not strictly valid C code, as it has references to undefined
funtions.  The testcase was written this way to check for a specific compiler
optimization.  If the testcase is used correctly, and the optimization
succeeds, then the testcase links.  If the testcase is used correctly, and the
optimization fails, then the testcase gives link errors.  Also, if you use the
testcase incorrectly, i.e. the wrong optimziation level, it can give link
errors.  

The testcase as written can't work with -flto, but does correectly verify
whether the optimization works, so it is OK, but could probably be improved. 
This looks like more of an enhancement request than a bug.

This is not a riscv specific problem.

Reply via email to