This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[Ada] warning: file name does not match unit name
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc at gcc dot gnu dot org
- Date: 14 Nov 2001 13:05:45 +0100
- Subject: [Ada] warning: file name does not match unit name
I'm trying to bootstrap Ada on ia64, via cross compiling from ia32. But
the Ada compiler built by the cross compiler cannot compile the Ada
runtime:
gcc -c -g -W -Wall -gnatpg -gnata -I- -I. -I../../../gcc/ada ../../../gcc/ada/a-charac.ads
a-charac.ads:19:12: warning: file name does not match unit name, should be "a-chara.ads"
[Btw: why is this a warning if the compiler exits unsucessfully without
creating an object?]
That looks pretty much like an off-by-one error. I tried to debug this,
but gdb-5.0.92 does not grok DW_FORM_strp and bails out. Where is this
file name computed, and how do I do printf-style debugging in Ada?
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5