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] minor efficiency improvement


Tested on i686-linux, committed on trunk.

This set of changes avoids the use of silly small values for
table increment (which appear to have been cases of confusion
over the meaning of this parameter, it is a percentage increase,
not a factor or an absolute count). Table has also been modified
to add at least a minimum of ten elements (as in GNAT.Table),
which is a defence not needed for the moment!

No test program is required, since this is only a minor efficiency issue.

2006-10-31  Robert Dewar  <dewar@adacore.com>

	* clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
	prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
	vms_conv.adb: Fix bad table increment values (much too small)

	* table.adb (Realloc): Make sure we get at least some new elements
	Defends against silly small values for table increment

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]