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] Thread-safe libgfortran (PRs fortran/14943 and fortran/21647)


>>>>> Jakub Jelinek writes:

Jakub> The only two changes that could cause this in the patch are in
Jakub> libgfortran/Makefile.{am,in}:

	The problem was exposed by

        * io/io.h: Include gthr.h.

AIX must multilib pthread support.  gthr-aix.h includes gthr-single.h by
default and gthr-posix.h when -pthread is enabled.  gthr-single.h does not
include unistd.h; gthr-posix.h does include that header.

	libgfortran uses AC_SYS_LARGEFILE, which defines _LARGE_FILES in
config.h.  _LARGE_FILES and _LARGE_FILE_API conflict.  The latter macro is
the preferred method on AIX and what libstdc++-v3 uses on AIX.

	The underlying problem is that libgfortran should define
_LARGE_FILE_API on AIX instead of _LARGE_FILES.  Any ideas on how to
accomplish that?

Thanks, David


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