From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26146 invoked by alias); 21 Jul 2013 22:09:05 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 23780 invoked by uid 55); 21 Jul 2013 22:07:02 -0000 From: "joseph at codesourcery dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/15767] C++ ABI inconsistency for fpos_t on 64-bit archs Date: Sun, 21 Jul 2013 22:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00136.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15767 --- Comment #2 from joseph at codesourcery dot com --- On Sun, 21 Jul 2013, bugdal at aerifal dot cx wrote: > With that said, I'm not sure why features.h doesn't make _FILE_OFFSET_BITS a > complete no-op on 64-bit archs. That would make the issue go away entirely. In general _FILE_OFFSET_BITS can change types even on 64-bit architectures. In particular, on MIPS n64, struct stat and struct stat64 are different (I don't know whether this was a historical accident, or an attempt at binary compatibility with IRIX), with the consequence that n64 does not use sysdeps/unix/sysv/linux/wordsize-64/, and meaning that _FILE_OFFSET_BITS=64 changes the struct stat layout to match struct stat64 and maps all functions using struct stat to the versions that use struct stat64 - and for ABI compatibility, it can't stop doing so. -- You are receiving this mail because: You are on the CC list for the bug.