Mail Archives: djgpp-workers/1999/04/26/06:29:24
On 26 Apr 99, at 12:25, Eli Zaretskii wrote:
>
> On Mon, 26 Apr 1999, Andris Pavenis wrote:
>
> > Such change will break gcc-2.8.1. Are we really
> > going to ask user to mess with specs file?
>
> Are we going to decide that EGCS is now the main compiler? If so, let's
> change lib/specs and never look back to 2.8.1. If not, then EGCS is an
> experimental software that newbies should not touch; if they do, they are
> expected to be able to edit a text file as per instructions.
Sorry I thought development snapshot of egcs. Such change in specs I mentioned
perhaps would break all previous versions as there is no option -fpermissive
even in egcs-1.1.2
> > - let's look at different example. In Linux libc version is
> > defined only in include file that is not included automatically.
> > And there are no serious related problems
>
> Linux is not a good example. Linux doesn't care about portability to
> other platforms, because everybody else needs to be compatible with them.
> Therefore, the only place where version-specific symbols are used in Linux
> is inside the library itself, where it is very easy to require to include
> that header. We do the same with libc/stubs.h, for example.
I don't agree. I have met references to libc version for example in sources of
DOSEMU-0.99.X and had to submit patch as there were glibc2 related bug and
glibc-2.1 I'm using were not supported at all
> In contrast, the DJGPP version-specific symbols are used in the
> application code. If we require inclusion of a header to get that,
> people will need to revise all those applications to make sure it
> will work for them. I submit that this is an antithesis of backward
> compatibility.
>
> > So I think that libc version (maybe minor version only) should be defined
> > in HEADER FILES ONLY (not in specs).
>
> It doesn't matter (IMHO) where it is defined. What we need is a way to
> get it defined automatically, without any special action on the part of
> the programmer. If we fail to do so, we will regret it very soon.
Perhaps for some time only while we fix related problems.
Andris
- Raw text -