[libgfortran, patch] Silence a warning in fallback round() implementation

FX fxcoudert@gmail.com
Tue Nov 8 09:46:00 GMT 2011


PR 47970 is about a warning in libgfortran/intrinsics/c99_functions.c for platforms without round() and ceill(), because round() is used in roundl() before it's prototype is given. Moving the round() prototype and implementation earlier in the file fixes it.

Patch tested by manually editing my config.h on x86_64-linux to simulate the conditions. OK to commit to trunk?
FX

-------------- next part --------------
A non-text attachment was scrubbed...
Name: round.diff
Type: application/octet-stream
Size: 1536 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111108/bb217160/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: round.ChangeLog
Type: application/octet-stream
Size: 148 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111108/bb217160/attachment-0001.obj>


More information about the Gcc-patches mailing list