This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13926] New: __bswap_64 in bits/byeswap.h only usable by gcc
- From: "djohnson at osc dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 28 Mar 2012 13:43:31 +0000
- Subject: [Bug libc/13926] New: __bswap_64 in bits/byeswap.h only usable by gcc
- Auto-submitted: auto-generated
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.