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]

[Q] initialisation of variable allocated wirh alloca in 'loop.c'


In loop.c, around line 8887, shouldn't the memory allocated by alloca be
'memseted'  in some way ?

giv_array = alloca (giv_count * sizeof (struct induction *));

There is a loop just below that set some elements but not all.
But a few lines below again, ALL values of giv_array are used. I think that
some may not be initialized properly.


Christophe Jaillet






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