This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/68273] [5 Regression] Wrong code on mips/mipsel due to (invalid?) peeking at alignments in function_arg.
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Feb 2016 14:23:43 +0000
- Subject: [Bug target/68273] [5 Regression] Wrong code on mips/mipsel due to (invalid?) peeking at alignments in function_arg.
- Auto-submitted: auto-generated
- References: <bug-68273-4 at http dot gcc dot gnu dot org/bugzilla/>
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?