This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17016] [lno] ICE with struct passed as reference
- From: "reichelt at igpm dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2004 07:49:14 -0000
- Subject: [Bug tree-optimization/17016] [lno] ICE with struct passed as reference
- References: <20040813133716.17016.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at igpm dot rwth-aachen dot de 2004-08-23 07:49 -------
Subject: Re: [lno] ICE with struct passed as
reference
On 23 Aug, rakdver at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From rakdver at gcc dot gnu dot org 2004-08-23 07:43 -------
> Patch:
>
> http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01729.html
>
> Fixed on lno, the bug is also latently present in mainline.
Zdenek, your patch looks somewhat suspicious to me:
First you replace
! if (TREE_CODE (type) == POINTER_TYPE)
by
! if (POINTER_TYPE_P (type))
and then you replace
! && TREE_CODE (type) != POINTER_TYPE)
by
! && POINTER_TYPE_P (type))
Isn't there a "!" missing?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17016