This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/14583] New: Incorrect prototype for sigsetjmp


http://sourceware.org/bugzilla/show_bug.cgi?id=14583

             Bug #: 14583
           Summary: Incorrect prototype for sigsetjmp
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: unassigned@sourceware.org
        ReportedBy: law@redhat.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


pthread.h declares __sigsetjmp as:

extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROW;

The problem is __sigsetjmp needs to be marked as non-leaf as is the case in
setjmp.h:

extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask)
__THROWNL;

Failure to mark __sigsetjmp correctly can result in GCC eliminating stores that
are not dead.  See:

https://bugzilla.redhat.com/show_bug.cgi?id=857236

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]