This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libfortran] PR 32858 - printf()-capabilities for runtime_error


On Mon, Jul 30, 2007 at 10:42:34AM +0200, Tobias Burnus wrote:
>FX Coudert wrote:
>> I daresay I'm a bit more anxious than Jerry about the portability of
>> the system you're introducing, and the functions you're using. Are we
>> garanteed that sprintf is available on all platforms?
>I don't know but it is used by:
>libcpp/macro.c, libcpp/charset.c,
>libgcc/config/libbid/bid128_to_string.c, libiberty/strerror.c,
>libobjc/archive.c.
>
>Still, it cannot harm to check MinGW ...

It's part of ISO C and SUSv3 (
http://www.opengroup.org/onlinepubs/009695399/functions/sprintf.html )

and since other parts of GCC already use it it should be safe (for
platforms that do not adhere to ISO C nor SUS the other parts of GCC
would already come with a replacement func, i assume).

cheers,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]