This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/64796] effective target bswap64 globally caches target-specific use of lp64
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Jan 2015 12:00:50 +0000
- Subject: [Bug testsuite/64796] effective target bswap64 globally caches target-specific use of lp64
- Auto-submitted: auto-generated
- References: <bug-64796-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64796
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to vries from comment #0)
> proc check_effective_target_bswap64 { } {
> global et_bswap64_saved
>
> if [info exists et_bswap64_saved] {
> verbose "check_effective_target_bswap64: using cached result" 2
> } else {
> set et_bswap64_saved 0
> if { [is-effective-target bswap]
> && [is-effective-target lp64] } {
> set et_bswap64_saved 1
> }
> }
>
> verbose "check_effective_target_bswap64: returning $et_bswap64_saved" 2
> return $et_bswap64_saved
> }
That is wrong for x32. X32 is ILP32 and should support bswap64.