This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50694] New: SH Target: SH2A little endian does not actually work
- From: "oleg dot endo at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Oct 2011 00:05:42 +0000
- Subject: [Bug target/50694] New: SH Target: SH2A little endian does not actually work
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50694
Bug #: 50694
Summary: SH Target: SH2A little endian does not actually work
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: oleg.endo@t-online.de
While testing a patch I have noticed some failures for SH2A and -ml.
The problem is that GCC happily generates SH2A code in little endian, but
when the output is assembled with GAS and it contains a "movi20" instruction,
GAS will abort at some "is big endian?" check.
Maybe for SH2A the -ml option should either output a warning and do big endian,
or just abort with an error message?
As far as I know, the SH2A does big endian only anyway...
Cheers,
Oleg