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 target/68273] [5 Regression] Wrong code on mips/mipsel due to (invalid?) peeking at alignments in function_arg.


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

--- Comment #22 from Richard Biener <rguenth at gcc dot gnu.org> ---
If -fno-ipa-sra helps can you try

Index: gcc/tree-sra.c
===================================================================
--- gcc/tree-sra.c      (revision 233268)
+++ gcc/tree-sra.c      (working copy)
@@ -4696,7 +4696,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);

as well?

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