[PATCH][RFC] Add -Otest for unit-testing optimization passes

Mark Mitchell mark@codesourcery.com
Fri Aug 27 13:14:00 GMT 2010


Richard Guenther wrote:

> This adds a crude unit-testing capability by enabling us to enable
> optimization passes on top of -O0.

Is your idea that we will still use DejaGNU tests to do this kind
unit-testing, writing C code as input and scanning assembly code or tree
dumps as output?

Ideally, true unit tests for tree-based optimizations would take GIMPLE
as input and produce GIMPLE as output.  I'm not sure how far we are from
the point where that would be practical.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list