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]

Re: Uninitialized tree node


>>>>> Graham  <grahams@rcp.co.uk> writes:

 > By coincedence I have some similar patches for gcc/rtl.c and gcc/tree.c
 > I haven't submitted them yet because I'm undecided between two
 > alternative approches.

 > A) Replace initialisation/copy loops with calls to bzero() and bcopy()
 > respectively. The only downside with this is it will hit compilation
 > speed, but will probably only get noticed on the older hardware.

gcc already optimizes bzero calls, so there should be no performance hit.
This is absolutely the way to go.

Jason


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