This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/12081] Gcc can't be compiled with -mregparm=3
- From: "rask at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2007 15:54:25 -0000
- Subject: [Bug target/12081] Gcc can't be compiled with -mregparm=3
- References: <bug-12081-1600@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from rask at gcc dot gnu dot org 2007-10-28 15:54 -------
In reply to comment #14:
> is your patch supposed to help with testcase presented in comment #6?
No, it's aimed at the problem from the description. That is, GCC itself doesn't
work if compiled with a compiler where f(int a, int b) is called differently
than f(int a, ...). I don't think your testcase is actually supposed to work.
Don't you get a warning if you take out (void *) and compile with -Wall?
As pinpointed in comment #2, GCC contains the same incorrect type cast. I
actually forgot to patch this part:
Index: gcc/genoutput.c
===================================================================
--- gcc/genoutput.c (revision 129503)
+++ gcc/genoutput.c (working copy)
@@ -386,7 +386,7 @@ output_insn_data (void)
}
if (d->name && d->name[0] != '*')
- printf (" (insn_gen_fn) gen_%s,\n", d->name);
+ printf (" gen_%s,\n", d->name);
else
printf (" 0,\n");
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081