delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2023/03/25/20:13:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417;
t=1679789412; i=juan DOT guerrero AT gmx DOT de;
bh=h055z9Qhv0NEZjEQOcdywYVTp6F2rc8v4MLo7+HwSLc=;
h=X-UI-Sender-Class:Date:From:To:Subject;
b=fSdc5HP7HkNLWLGy0T9ls1kh3B6opkrT9MfvDWy/Q13Et/B2sE1HxggC7X9QsaoL6
VVwcPY8mep7vvYyHRVYNNZMAIw7P5+ZVjm6NGLGEl9NO7sS+FroDdMXvyLqbGDi/Vq
dWpyw7X524Eif8ul7AMZXiTuE8jss7WDlS8DHs+XTr9d2WMEWnoKB2osti+VKfQGQU
WoSw2gGDYDHW3tq7Ee0BzP6Gn1Ka3wiMafIhPyJhNIx3gtcWxyNnwM/WWkm8BCLWNL
hprYAJcpbPwQI6GkyTjVS5IaQc1b28iyHywQkXODFC+8/1wt2RP1g3nOnpD6QuOt3M
BgDsGdidOgsug==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Date: Sun, 26 Mar 2023 01:10:07 +0100
From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
To: djgpp AT delorie DOT com
Subject: Signess issues in dxe3gen.c inhibits the compilation of the
repository code.
Message-ID: <20230326011007.03df3795@gmx.de>
X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu)
MIME-Version: 1.0
X-Provags-ID: V03:K1:tfTURQMBISanl5bDs5+kjUb+9RxRi/w5dnYaS/up8yJAdQy4V5R
BxI94aSyBJh4ee2WazLE7+SHoMVkdk5TiZey0OY71TAPcw9g9mDbi3vGMFg/fhbYE5Bzc3Q
FCg8+fXm8ROzhbichqRwKHKRv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wbPGJ/9OPc8usBHhB67qj+8IHODA3zF
A/zC7IaGKKIuRTl4/HNMxe83eRk=
Reply-To: djgpp AT delorie DOT com

In /cvs/djgpp/djgpp/src/dxe/dxe3gen.c	2023/01/31 20:15:02	1.28
the variables max_names and num_names are declared as unsigned int.
Later at line 1323 in dxe3gen.c, num_names gets compared with n_exp_syms
that is declared as LONG32 in dxe.h inhibiting the compilation of the
current repository code.  max_names and num_names are members of the
struct opt defined in dxe3gen.c and n_exp_syms is a member of the
struct dxe3_header defined in dxe.h.
Modifying the signess of opt.num_names generates new signess
issues like this:
gcc -g -DDXE_CC=\"gcc\" -DDXE_AR=\"ar\" dxe3gen.c -o ../../hostbin/dxegen.exe
gcc ... -c dxe3gen.c
dxe3gen.c: In function `process_exp_file':
dxe3gen.c:513: warning: comparison between signed and unsigned
dxe3gen.c: In function `write_dxe':
dxe3gen.c:1285: warning: comparison between signed and unsigned
dxe3gen.c:1334: warning: comparison between signed and unsigned
make[1]: *** [../makefile.inc:90: dxe3gen.o] Error 1
make: *** [makefile:48: subs] Error 2

Is there any reason for this difference in signess of the members
of those structs if they shall be compared some where in the code?

Regards,
Juan M. Guerrero

- Raw text -


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