This is the mail archive of the gcc-bugs@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]

[Bug libfortran/15235] [gfortran] libgfortran doesn't build on Solaris 10/x86


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-05-14 17:17 -------
Subject: Re:  [gfortran] libgfortran doesn't build on Solaris 10/x86

Tobias dot Schlueter at physik dot uni-muenchen dot de writes:

> Yeah, seems like this is the right thing to do. I will prepare a patch 
> to this effect later today. I.e. use off_t in all places.

Fine, thanks.

> Besides, I'm curious, is offset_t different from off_t on Solaris?

Yes, off_t can be 32 bit or 64 bit: always 64 bit for 64-bit compilations,
either one for 32-bit compilations, depending on large file support, while
offset_t is always 64 bit:

/*
 * The size of off_t and related types depends on the setting of
 * _FILE_OFFSET_BITS.  (Note that other system headers define other types
 * related to those defined here.)
[...]

#if defined(_LP64) || _FILE_OFFSET_BITS == 32
typedef long            off_t;          /* offsets within files */
#elif _FILE_OFFSET_BITS == 64
typedef longlong_t      off_t;          /* offsets within files */
#endif

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15235


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