delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/04/07/13:22:03

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <42556BE6.4060406@ujf-grenoble.fr>
Date: Thu, 07 Apr 2005 18:20:38 +0100
From: Maurice Lombardi <Maurice DOT Lombardi AT ujf-grenoble DOT fr>
User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: fr-fr, fr
MIME-Version: 1.0
To: djgpp <djgpp AT delorie DOT com>
Subject: [Fwd: Re: ANNOUNCE: DJGPP port of GPC (GNU Pascal Compiler 20041218)
for]
X-MIME-Autoconverted: from 8bit to quoted-printable by furon.ujf-grenoble.fr id j37HKpSa027476
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j37HKtsW002747


-------- Message d'origine --------
Sujet: Re: ANNOUNCE:  DJGPP port of GPC (GNU Pascal Compiler 20041218) for
Date: Thu, 07 Apr 2005 14:51:53 +0100
De: Maurice Lombardi <Maurice DOT Lombardi AT ujf-grenoble DOT fr>
A: cbfalconer AT worldnet DOT att DOT net
Références: <200504071210 DOT j37CAoPI010500 AT delorie DOT com> <42552DBB DOT 3ECDBF27 AT yahoo DOT com>



CBFalconer a écrit:
> Maurice Lombardi wrote:
> 
>>GPC, the GNU Pascal compiler of the GNU Compiler Collection
>>stable version 20041218 is available for the gcc-3.2.3 backend.
> 
> 
> Since the main gcc version for DJGPP is up to 3.4.?, it would be
> pleasant to have a matching gpc version.  Is this not feasible for
> some reason?

This is not possible today because gcc-3.3.x introduced a change
in CPP_PREDEFINES which has not yet been mirrored into gpc.
It means that __GO32__  __MSDOS__  __DJGPP__  __unix__
and the like are no more predefined, and thus automatically
available inside gpc.
This breaks down widely used units like gpc, crt, grx, dos, pipe
and many other which use {$ifdef ... these variables to adjust
bahaviour of the compiler to the underlying OS.
This is frequently not seen by the users, because many efforts have been
made by the compiler writers in order that these "details" be not visible
in the pure Pascal part of the programs, supplying system independent functions
to allow maximum portability. But they are contained somewhere inside.
The problem is the same with MINGW32, CYGWIN which stick also to gcc-3.2.3 for
the same reason. It is less obvious in linux systems, because linux behaviour
is usually taken as the default inside the compiler, as it is the system
used by the compiler makers. But for example the grx / graph units are broken
inside linux, for missing of a prefined "linux".

This does not prevent successfull compilation of gpc, and even successfull
running of the test suite, because a trick is included in the script
used to run it, supplying "manually" via -D... these defines.
But ordinary users, not aware of this, would only see that "none of
their program no more works", and conclude that "gpc is a mere ????".
Is that you want ?

It is thus better to wait that Franck (or other) tackle this problem
before to upgrade to the last version of gcc. They promise to do that
"soonly".

Maurice

-- 
        Maurice Lombardi
Laboratoire de  Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex     FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:Maurice DOT Lombardi AT ujf-grenoble DOT fr


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019