On 03/28/14 04:16, K_s, Vishnu wrote:
Hi all,
The tests added in gcc.dg/tree-ssa/isolate-*.c is failing for AVR target,
Because the isolate erroneous path pass needs -fdelete-null-pointer-checks
option to be enabled. For AVR target that option is disabled, this cause
the tests to fail. Following Patch skip the isolate-* tests if
"keeps_null_pointer_checks" is true.
2014-03-28 Vishnu K S <vishnu....@atmel.com >
* gcc/testsuite/gcc.dg/tree-ssa/isolate-1.c: Skip test for AVR
* gcc/testsuite/gcc.dg/tree-ssa/isolate-2.c: Ditto
* gcc/testsuite/gcc.dg/tree-ssa/isolate-3.c: Ditto
* gcc/testsuite/gcc.dg/tree-ssa/isolate-4.c: Ditto
* gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c: Ditto
This is fine for the trunk. Please go ahead and install.
However, we generally discourage ports from turning off passes like this
and particularly so without a comment as to why a pass is turned off.
That code was added to the AVR port here:
http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01968.html
If you could add a comment to the AVR port indicating that
delete-null-pointer-checks is disabled because the hardware does not
fault on a NULL dereference, it would be greatly appreciated. Consider
that comment addition pre-approved, just post it to the list for
archival purposes.
Thanks,
Jeff