From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: Re: Linker warning Date: Fri, 11 Aug 2000 18:56:07 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 41 Message-ID: <39943027.EDEA89F2@ma.tum.de> References: <3992D37A DOT D0274FA6 AT ma DOT tum DOT de> <3993A4C0 DOT D972C04D AT ma DOT tum DOT de> <8n0uad$e1i$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <39940C7A DOT 7BC45478 AT ma DOT tum DOT de> <8n13le$g4d$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> NNTP-Posting-Host: pcritter10.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 966012984 27684 131.159.69.74 (11 Aug 2000 16:56:24 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 11 Aug 2000 16:56:24 GMT X-Mailer: Mozilla 4.73 [de]C-CCK-MCD DT (Win98; U) X-Accept-Language: de,en,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker schrieb: > Please ave a look at 'gcc -S > -fverbose-asm' output for both sourcefiles. Pay a particularly close > look at any occurance of 'head' in the '.stab' (debug info) > directives. As the assembler input files bug.s and glob.s are identical produced with bnu281 and bnu210 as well as using the as.exe210 in a 281 suite causes the warning, it most probably is a bug in 'as.exe'. Unfortunetely my skills don't suffice to interprete any disassembly. Perhaps anyone can dig into it. IMHO this could be a dangerous bug. The new reduced formulation of the problem: is it dangerous to use external global variable names, that clash with global structure member names with bnu2.10 when debugging is intended ? reduced example: cat bug.c ========= struct _d_t { unsigned drive; unsigned head; }; extern int *head; int main(void) { head=0; return 0; } cat glob.c ======== int *head; gcc -g bug.c glob.c ====== ld.exe: Warning: type of symbol `_head' changed from 14 to 20 ... -- Gruss Waldemar Schultz. Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228