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 libc/13926] New: __bswap_64 in bits/byeswap.h only usable by gcc


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

             Bug #: 13926
           Summary: __bswap_64 in bits/byeswap.h only usable by gcc
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: minor
          Priority: P3
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: djohnson@osc.edu
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Hi,

I've found what I believe is a bug in the bits/byteswap.h file, and the defines
that control whether masks/shifts or gcc inline assembly are used to implement
the byte swap.  The 16 and 32 bits swaps are compatible with non-gcc compilers,
but the 64 bit swap can never be defined for a non-gcc compiler.  See attached
patch for what I think the defines should look like (untested patch.)

Doug

-- 
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]