[PATCH] Compile time buffer overflow checks for strncat

Andrew Pinski pinskia@physics.uc.edu
Mon Sep 18 19:15:00 GMT 2006


> Unfortunately, during testing I found that while convert_to_gimple_builtin
> annotates the new statements with locus, set_rhs does not, so if
> fold_builtin transforms one call into a different one, which is still valid
> gimple RHS, the locus is lost.  So, the tree-ssa-propagate.c bit was
> added to fix this up.
> 
> Ok for trunk?
> 
> 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
> 	needed.

Even if the other parts are not approved for the trunks, I think this part should
be approved because it could also fixe some debugging regressions.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list