make.adb (Add_Switch): Make Generic_Position a procedure.
authorFlorian Weimer <fw@deneb.enyo.de>
Sat, 22 Dec 2001 11:58:51 +0000 (12:58 +0100)
committerFlorian Weimer <fw@gcc.gnu.org>
Sat, 22 Dec 2001 11:58:51 +0000 (12:58 +0100)
commit7a73ad55d8dbf2a2cf99268013d41a0af0d95b02
treec00928552111ff9496bdffd2b750652872457a52
parent5637a0ebb90a4b68bc8faaf29362157be0a6b366
make.adb (Add_Switch): Make Generic_Position a procedure.

* make.adb (Add_Switch): Make Generic_Position a procedure.  The
function approach did not work well because of a side effect (the
function call could reallocate the table which was being indexed
using its result). Fixes ada/4851.

From-SVN: r48265
gcc/ada/ChangeLog
gcc/ada/make.adb