An additional bit of information: the problem also goes away with -O2 -fno-inline, therefore it definitely seems inlining related. Ciao, Paolo. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6713