[PATCH, fortran] PR 53379 Backtrace on error termination

Mike Stump mikestump@comcast.net
Wed Sep 9 15:09:00 GMT 2015


On Sep 8, 2015, at 9:12 PM, Ian Lance Taylor <ian@airs.com> wrote:
> Yes, I think this might be even better in code.  How about something
> like
> 
>  /* On some versions of AIX O_CLOEXEC does not fit in int, so use a
>     cast to force it.  */
>  descriptor = open (filename, (int) (O_RDONLY | O_BINARY | O_CLOEXEC));

How about:

  descriptor = open (filename, /* AIX */ (int) (O_RDONLY | O_BINARY | O_CLOEXEC));

?  It makes it removable in the nearer term.  :-)


More information about the Gcc-patches mailing list