public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug backends/31142] New: riscv pass_by_flattened_arg not implemented
@ 2023-12-11 22:47 mark at klomp dot org
  2023-12-12 12:26 ` [Bug backends/31142] " rehn at rivosinc dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mark at klomp dot org @ 2023-12-11 22:47 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=31142

            Bug ID: 31142
           Summary: riscv pass_by_flattened_arg not implemented
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: backends
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

dwfl_module_return_value_location will fail for functions that return a struct
because that need pass_by_flattened_arg in backends/riscv_retval.c which is
currently:

static int
pass_by_flattened_arg (const Dwarf_Op **locp __attribute__ ((unused)),
                       Dwarf_Word size __attribute__ ((unused)),
                       Dwarf_Die *arg0 __attribute__ ((unused)),
                       Dwarf_Die *arg1 __attribute__ ((unused)))
{
  /* ??? */
  return -2;
}

This happens for example with the glibc div function which returns:

typedef struct
  {
    int quot;                   /* Quotient.  */
    int rem;                    /* Remainder.  */
  } div_t;

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-03-20 19:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-11 22:47 [Bug backends/31142] New: riscv pass_by_flattened_arg not implemented mark at klomp dot org
2023-12-12 12:26 ` [Bug backends/31142] " rehn at rivosinc dot com
2023-12-12 12:50 ` palmer at gcc dot gnu.org
2023-12-13 15:01 ` mark at klomp dot org
2023-12-21  1:41 ` mark at klomp dot org
2024-03-20 15:10 ` mark at klomp dot org
2024-03-20 19:40 ` mark at klomp dot 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).