https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68273

Hector Oron <hector.oron at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hector.oron at gmail dot com

--- Comment #23 from Hector Oron <hector.oron at gmail dot com> ---
On mips LE machine running Debian OS,
system type             : loongson-ls3a-rs780e-1w
cpu model               : ICT Loongson-3 V0.5  FPU V0.1

I have attempted to build GCC 5.3 with the posted patches:

Index: gcc-5-5.3.1/src/gcc/tree-ssanames.c
===================================================================
--- gcc-5-5.3.1.orig/src/gcc/tree-ssanames.c
+++ gcc-5-5.3.1/src/gcc/tree-ssanames.c
@@ -173,7 +173,7 @@ make_ssa_name_fn (struct function *fn, t

   if (TYPE_P (var))
     {
-      TREE_TYPE (t) = var;
+      TREE_TYPE (t) = TYPE_MAIN_VARIANT (var);
       SET_SSA_NAME_VAR_OR_IDENTIFIER (t, NULL_TREE);
     }
   else
Index: gcc-5-5.3.1/src/gcc/tree-sra.c
===================================================================
--- gcc-5-5.3.1.orig/src/gcc/tree-sra.c
+++ gcc-5-5.3.1/src/gcc/tree-sra.c
@@ -4547,7 +4547,7 @@ get_replaced_param_substitute (struct ip
     {
       char *pretty_name = make_fancy_name (adj->base);

-      repl = create_tmp_reg (TREE_TYPE (adj->base), "ISR");
+      repl = create_tmp_reg (TYPE_MAIN_VARIANT (TREE_TYPE (adj->base)),
"ISR");
       DECL_NAME (repl) = get_identifier (pretty_name);
       obstack_free (&name_obstack, pretty_name);


Compiled GCC 5.3.1, then with it compiled graphviz, and using dot application
triggers an error (lt-dot: emit.c:3874: bezier_bb: Assertion `bz.size % 3 == 1'
failed.)

While if I compile graphviz passing -fno-ipa-sra, then dot works as expected.

If there is something I can post to help solve this issue let me know.

Reply via email to