public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/26647] New: [-Werror=array-parameter=] due to different declarations for __sigsetjmp
@ 2020-09-22 13:07 vvinayag at arm dot com
  2020-09-22 13:08 ` [Bug build/26647] " vvinayag at arm dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: vvinayag at arm dot com @ 2020-09-22 13:07 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 26647
           Summary: [-Werror=array-parameter=] due to different
                    declarations for __sigsetjmp
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: vvinayag at arm dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

After this patch [1], I am seeing this -Warray-parameter error when building
gcc:

In file included from ../include/pthread.h:1,
                 from ../sysdeps/nptl/thread_db.h:25,
                 from ../nptl/descr.h:32,
                 from ../sysdeps/aarch64/nptl/tls.h:44,
                 from ../include/errno.h:25,
                 from ../sysdeps/unix/sysv/linux/sysdep.h:23,
                 from ../sysdeps/unix/sysv/linux/generic/sysdep.h:22,
                 from ../sysdeps/unix/sysv/linux/aarch64/sysdep.h:24,
                 from <stdin>:1:
../sysdeps/nptl/pthread.h:734:47: error: argument 1 of type ‘struct
__jmp_buf_tag *’ declared as a pointer [-Werror=array-parameter=]
  734 | extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask)
__THROWNL;
      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from ../include/setjmp.h:2,
                 from ../nptl/descr.h:24,
                 from ../sysdeps/aarch64/nptl/tls.h:44,
                 from ../include/errno.h:25,
                 from ../sysdeps/unix/sysv/linux/sysdep.h:23,
                 from ../sysdeps/unix/sysv/linux/generic/sysdep.h:22,
                 from ../sysdeps/unix/sysv/linux/aarch64/sysdep.h:24,
                 from <stdin>:1:
../setjmp/setjmp.h:54:46: note: previously declared as an array ‘struct
__jmp_buf_tag[1]’
   54 | extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask)
__THROWNL;
      |                         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
cc1: all warnings being treated as errors


The build/host/target setup is:
Build: x86_64-linux-gnu (Ubuntu 18.04)
Host: x86_64-linux-gnu
Target: aarch64-none-linux-gnu, aarch64_be-none-linux-gnu,
arm-none-linux-gnueabi, arm-none-linux-gnueabihf


This was mentioned in
https://gcc.gnu.org/pipermail/gcc-patches/2020-September/554415.html and it
seems like the warning might need to be suppressed in glibc.

[1]
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6450f07388f9fe575a489c9309c36012b17b88b0

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

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

end of thread, other threads:[~2021-09-07 11:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 13:07 [Bug build/26647] New: [-Werror=array-parameter=] due to different declarations for __sigsetjmp vvinayag at arm dot com
2020-09-22 13:08 ` [Bug build/26647] " vvinayag at arm dot com
2020-09-23 14:50 ` msc at linux dot ibm.com
2020-09-23 15:05 ` schwab@linux-m68k.org
2020-10-05 16:47 ` cvs-commit at gcc dot gnu.org
2020-10-06 11:43 ` schwab@linux-m68k.org
2020-10-18 20:01 ` schwab@linux-m68k.org
2020-10-25 22:22 ` schwab@linux-m68k.org
2020-10-30 21:38 ` cvs-commit at gcc dot gnu.org
2020-10-30 21:44 ` jsm28 at gcc dot gnu.org
2021-09-07 11:07 ` bonzini at gnu 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).