This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,testsuite]Fix tree-ssa tests for target with no-delete-null-pointer-checks
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Andy H <hutchinsonandy at aim dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 18 Jun 2008 06:59:32 -0700
- Subject: Re: [PATCH,testsuite]Fix tree-ssa tests for target with no-delete-null-pointer-checks
- References: <48555A54.6070506@aim.com>
- Reply-to: janis187 at us dot ibm dot com
On Sun, 2008-06-15 at 14:07 -0400, Andy H wrote:
> The attached patch allow several tree-ssa test to operate correctly on
> AVR target where *-fno-delete-null-pointer-checks* is active.
>
> In this case tests for removal of null pointer checks after
> dereferencing are invalid. Indeed the opposite is correct
>
> The patches exclude avr-*-* target from existing check and add avr-*-*
> tests to check for NO REMOVAL of null pointer checks.
> Other targets maybe added to selector latter as required.
>
> Tests with AVR target and i686 target on i686 host. No regressions. AVR
> now passes these tests.
>
> Ok for 4.4 mainline?
Instead of checking directly for avr-*-*, please add a new
effective target keyword for targets on which
*-fno-delete-null-pointer-checks* is active and use that
instead.
Janis