Subject: Re: gcc-ansi -pedantic and long long on NetBSD
To: None <current-users@netbsd.org>
From: T. William Wells <bill@twwells.com>
List: current-users
Date: 10/30/1994 20:41:38
In article <9410301841.AA09516@alpha.bostic.com>,
Chris G. Demetriou <cgd@alpha.bostic.com> wrote:
: Cc: current-users@NetBSD.ORG
: In-Reply-To: Your message of "Sun, 30 Oct 1994 12:32:09."
:              <9410301132.AA09600@hill.laas.fr>
:
: > 1. Fix gcc so the -pedantic doesn't choke on long long anymore (I
: >    suppose that some ANSI version of C will support 64bit ints)
:
: This is probably the solution.  it's unclear that ANSI will support
: 64bit ints in any reasonable fashion, though.

This is wrong. -ansi -pedantic is supposed to complain on
anything that isn't strict ANSI, and this isn't.

: > 2. Fix the NetBSD headers so that they only use strict ansi types when
: >    -pedantic is used
:
: that's not at all practical; 64-bit ints are fundamental to some of
: the prototypes, etc., in the system.  if the prototypes aren't there,
: you'll lose.

However, there is a solution to this. Instead of using long long
in the prototypes, Gnu C should define a __quad__ type and use
that instead.