This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]