This is the mail archive of the gcc-patches@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] Avoid junk misspelling messages


This patch adjusts Is_Bad_Spelling_Of in Namet to return False for
identical strings. This prevents the compiler from issuing silly
messages saying "X is a possible misspelling of Y", where X and
Y are identical.

Not clear when this latent bug can surface. So no test. This was
actually observed for a case of the configurable run time that
omitted a unit that was explicitly with'ed. Too difficult to set
this up as a test.

Tested on x86_64-pc-linux-gnu, committed on trunk

2009-04-20  Robert Dewar  <dewar@adacore.com>

	* namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
	(equal values => False).

Attachment: difs
Description: Text document


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