This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 [tree-ssa, libmudflap]: support libmudflap on FreeBSD


Loren James Rittle <rittle@latour.rsch.comm.mot.com> writes:

>   {
>     TRACE ("%s\n", __PRETTY_FUNCTION__);
>     MF_VALIDATE_EXTENT (s, 1, __MF_CHECK_WRITE, "gets buffer");
> + #ifndef __FreeBSD__
>     s = gets (s);
> + #else
> +   // Avoid link-time warning...
> +   s = fgets (s, INT_MAX, stdin);
> + #endif

I would make this change for all platforms - glibc will also generate
a warning...


Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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