🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1089

built-in conflict resolved, more or less

#1089
From: meissner
Date: Tue, 08 Sep 1992 06:51
26 lines
1402 bytes
| OK, I understand the situation better now:
| 
| The ANSI standard for size_t is long unsigned int, and the seq386.h header
| file does not redefine SIZE_TYPE to int to agree with the system headers.

Umm, the ANSI standard does NOT specify size_t is long unsigned.  All
it specifies is that it is an unsigned type, large enough to hold any
sizeof expression.

| However, libg++/utils/gen-params checks the system headers before the gcc
| headers to find out what size_t is, so it finds the typedef of size_t to
| int in sys/types.h.
| 
| There are two solutions I see:
| 1) Redefine SIZE_TYPE in config/seq386.h to agree with the system headers.
| 2) Alter gen-params to use the definition of size_t in the gcc headers.
| 
| Which is preferable?

#1 is generally preferable.

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID: <9209081451.AA09393@curley.osf.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!osf.ORG!meissner
References: meissner@osf.ORG

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Subject: built-in conflict resolved, more or less
Message-ID: <9209081451.AA09393@curley.osf.org>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
References: meissner@osf.ORG
Distribution: gnu
Date: Tue, 8 Sep 1992 06:51:30 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 27