public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/28649] New: sim-bits: WITH_TARGET_WORD_MSB does not handle current_target_byte_order
@ 2021-12-04 19:17 vapier at gentoo dot org
0 siblings, 0 replies; only message in thread
From: vapier at gentoo dot org @ 2021-12-04 19:17 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28649
Bug ID: 28649
Summary: sim-bits: WITH_TARGET_WORD_MSB does not handle
current_target_byte_order
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: sim
Assignee: unassigned at sourceware dot org
Reporter: vapier at gentoo dot org
CC: vapier at gentoo dot org
Target Milestone: ---
WITH_TARGET_WORD_MSB is fixed at compile time to little or big endian. for
biendian arches that set current_target_byte_order on the fly, this build
constant gets out of sync.
this define only affects macros inside of sim-bits.h. that header provides
explicit big & little endian funcs, and generic ones that select endian based
on WITH_TARGET_WORD_MSB.
need to review to see where those generic ones are used. ideally we'd delete
WITH_TARGET_WORD_MSB entirely and use WITH_TARGET_BYTE_ORDER only, and have the
generic ones be dynamic if WITH_TARGET_BYTE_ORDER isn't a constant.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-04 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04 19:17 [Bug sim/28649] New: sim-bits: WITH_TARGET_WORD_MSB does not handle current_target_byte_order vapier at gentoo 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).