public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63434] New: builtins.c has incorrect parameters for GEN_CALL_VALUE
@ 2014-10-01 18:55 steve at hearnden dot org.uk
  2014-10-06 12:12 ` [Bug middle-end/63434] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: steve at hearnden dot org.uk @ 2014-10-01 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63434
           Summary: builtins.c has incorrect parameters for GEN_CALL_VALUE
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steve at hearnden dot org.uk

When trying to compile a new machine description, I found that testsuite
testsuite/gcc.c-torture/compile/930623-1.c was crashing.  The machine
description needs a 4th parameter to be added.

On investigation of the cause, my 4th parameter to the call function (number of
registers) had been set to NULL.  With some searching, it appears that the
builtins don't work when the 4th Parameter is added, or require it to be
specially coded.  I believe the correct fix is described below - switching the
last two parameters



       emit_call_insn (GEN_CALL_VALUE (valreg,
                                      gen_rtx_MEM (FUNCTION_MODE, function),
-                                     const0_rtx, NULL_RTX, const0_rtx));
+                                     const0_rtx,  const0_rtx, NULL_RTX));


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-28 19:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01 18:55 [Bug c/63434] New: builtins.c has incorrect parameters for GEN_CALL_VALUE steve at hearnden dot org.uk
2014-10-06 12:12 ` [Bug middle-end/63434] " rguenth at gcc dot gnu.org
2014-10-07 19:28 ` steve at hearnden dot org.uk
2015-06-05 19:47 ` steve at hearnden dot org.uk
2021-08-28 19:57 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).