This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix middle-end/30164 invalid gimple produced for global_vector = CONSTRUCTOR


On 12/22/06, Andrew Pinski <pinskia@gmail.com> wrote:
The problem here is that gimplify_init_constructor does not check if the
left hand is a gimple register before leaving the CONSTRUCTOR on the
right hand side.  This fixes the problem by generating a temporary
variable if the left hand side is not a gimple register.

OK? Bootstrapped and tested on i686-linux-gnu with no regression.

This is ok.


Thanks,
Richard.

ChangeLog:

        * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
        Use a temporary variable if the left hand side is not a gimple
        register.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]