This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Ipa and CONSTRUCTOR in global vars
- From: Waldek Hebisch <hebisch at math dot uni dot wroc dot pl>
- To: gcc at gnu dot org
- Date: Thu, 6 Apr 2006 22:06:09 +0200 (CEST)
- Subject: Ipa and CONSTRUCTOR in global vars
I am updating GNU Pascal to work with gcc-4.x. I have hit the following
problem: `get_base_var' (in ipa-utils.c:224) can not handle a CONSTRUCTOR
and I get ICE.
AFAICS the CONSTRUCTOR in question comes from initializer of global
variable. More precisely, I have a global variable with an initializer.
This initialize is a CONSTRUCTOR. One of its components is ADDR_EXPR
of another CONSTRUCTOR.
Now, the question is: should `get_base_var' be extended to handle
CONSTRUCTOR nodes or is ADDR_EXPR of a CONSTRUCTOR forbidden from
getting there?
--
Waldek Hebisch
hebisch@math.uni.wroc.pl