[patch] Fix PR23165

James A. Morrison ja2morri@csclub.uwaterloo.ca
Mon Aug 1 02:17:00 GMT 2005


 Hi,

  This patch fixes pr23165 and pr23161 by looking into STATEMENT_LISTs and
checking if the last statement in the list is a token representing an empty
if stmt.  The reason we have a STATEMENT_LIST around even though the if stmt
is empty is because a label is put into the STATEMENT_LIST so we have to
look past all the labels.  Previously we didn't look into the STATEMENT_LIST
so a statement with no type was passed to the gimplifier which caused a
segfault, pr23165.  This patch has been bootstraped and regtested on ia64-linux
with no new regressions, ok for mainline?

:ADDPATCH C:

-- 
Thanks,
Jim

http://www.csclub.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr23165.1.patch
Type: text/x-patch
Size: 1816 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050801/bb822a02/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr23165.c
Type: text/x-csrc
Size: 141 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050801/bb822a02/attachment-0001.bin>


More information about the Gcc-patches mailing list