www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/05/11/12:48:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1+Q3dkPCC2QESsujuw0IXSArRGLguoSGQj551mQCl
Nl26jLQ8301l/B
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Probably a bug in gcc 4.3.0
Date: Sun, 11 May 2008 18:40:19 +0200
User-Agent: KMail/1.9.5
MIME-Version: 1.0
Message-Id: <200805111840.20870.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

There is probably a bug in the gcc430b.zip file.  I have not tried to build the
binaries from the sources so I am not sure if it is only an error produced during
the packing of the zip file or if the build process of gcc 4.3.0 is brocken.

The following code always fails if compiled with gcc 4.3.0:

#define TEST_LIBSUPP  1
#if TEST_LIBSUPP
# if (__DJGPP__  == 2) && (__DJGPP_MINOR__ < 4)
#  include <libsupp.h>
# else
#  include "../include/libsupp.h"
# endif
#else
# include <stdio.h>
#endif
#include <float.h>
#include <limits.h>
#if (__DJGPP__  == 2) && (__DJGPP_MINOR__ >= 4)
# include <stdint.h>
#endif
[snip]

but always works if compiled with gcc 4.2.3.  The difficulty is in line 3 from
the top. Here is the preprocessor output produced with gcc 4.2.3:

# 1 "1.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "c:/djgpp/bin/../lib/gcc/djgpp/4.23/djgpp.ver" 1
# 1 "c:/djgpp/include/sys/version.h" 1 3 4
# 2 "c:/djgpp/bin/../lib/gcc/djgpp/4.23/djgpp.ver" 2
# 1 "<command-line>" 2
# 1 "1.c"
[snip]

A comparision of the preprocessor output shows that djgpp.ver is missed in the
binary distribution of gcc430.  There my be even more missing files.  I have
not investigated this further.

The first couple of lines of the preprocessor output produced by gcc 4.3.0 looks
like this:

# 1 "1.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "1.c"
# 11 "1.c"
# 1 "c:/djgpp/bin/../lib/gcc/djgpp/4.30/include/float.h" 1 3 4
# 32 "c:/djgpp/bin/../lib/gcc/djgpp/4.30/include/float.h" 3 4
# 1 "c:/djgpp/bin/../lib/gcc/../../lib/gcc/djgpp/4.30/include/float.h" 1 3 4
# 32 "c:/djgpp/bin/../lib/gcc/../../lib/gcc/djgpp/4.30/include/float.h" 3 4
# 1 "c:/djgpp/include/float.h" 1 3 4
# 10 "c:/djgpp/include/float.h" 3 4
extern float __dj_float_epsilon;
extern float __dj_float_max;
extern float __dj_float_min;
# 26 "c:/djgpp/include/float.h" 3 4
[snip]

If more information is required, please let me now.


Regards,
Juan M. Guerrero

- Raw text -


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