[PATCH,testsuite]Make test pr36227 reflect target pointer size

Andy H hutchinsonandy@aim.com
Sun Jun 22 13:01:00 GMT 2008


Test pr36227 will fail if size of pointer in not size of  long. 
Conversion  will emit unexpected warning

pr36227.c:7: warning: cast from pointer to integer of different size

This patch picks  int, long or long long to match pointer size. If none 
of these work, it emits error
requiring target support is needed.

Tested on avr and i686 targets.

Ok for 4.4 mainline?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix36227.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080622/b28869d3/attachment.ksh>


More information about the Gcc-patches mailing list