This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/16705] ICE in verify_flow_insensitive_alias_info


------- Additional Comments From dnovillo at redhat dot com  2004-07-28 04:36 -------
Subject: Re:  ICE in
	verify_flow_insensitive_alias_info

On Tue, 2004-07-27 at 02:20, pinskia at gcc dot gnu dot org wrote:

> I see this with a fortran to C compiler for SPEC CPU 2000FP code.
> Can you please look into this bug, Diego?
>
This patches fixes this problem.  Essentially, we should always consider
.GLOBAL_VAR as potentially aliased.  This may have been related to the
Ada bootstrap problems.  Kenner, could you check?  Thanks.

I'm not quite sure whether this test can be added as-is to the fortran
testsuite.  Could anyone confirm if I can just drop it in gfortran.dg? 
How should I change the compile flags used?

Bootstrapped and tested x86 and ppc.


Diego.

	PR tree-optimization/16705
	* tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
	.GLOBAL_VAR.


Index: tree-ssa-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-alias.c,v
retrieving revision 2.17
diff -d -c -p -r2.17 tree-ssa-alias.c
*** tree-ssa-alias.c	27 Jul 2004 15:32:44 -0000	2.17
--- tree-ssa-alias.c	28 Jul 2004 04:15:26 -0000
*************** create_global_var (void)
*** 2202,2208 ****
                             size_type_node);
    DECL_ARTIFICIAL (global_var) = 1;
    TREE_READONLY (global_var) = 0;
!   DECL_EXTERNAL (global_var) = 0;
    TREE_STATIC (global_var) = 1;
    TREE_USED (global_var) = 1;
    DECL_CONTEXT (global_var) = NULL_TREE;
--- 2205,2211 ----
                             size_type_node);
    DECL_ARTIFICIAL (global_var) = 1;
    TREE_READONLY (global_var) = 0;
!   DECL_EXTERNAL (global_var) = 1;
    TREE_STATIC (global_var) = 1;
    TREE_USED (global_var) = 1;
    DECL_CONTEXT (global_var) = NULL_TREE;




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16705


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