This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

PATCH:[darwin] fix load of a misaligned double word


The attached test case shows that gcc generates bad code for loading a misaligned data member of DImode .
This happens with '-O2 -mpowerpc64' . Bug manifests itself with ppc-darwin assembler issuing error:


gcc -c -O2 -mpowerpc64 bad.c
/var/tmp//ccb6foPc.s:17:Parameter error: expression must be a multiple of 4 (parameter 2)


OK to commit to FSF3.4 branch?

- Fariborz Jahanian
  fjahanian@apple.com




ChangeLog:


2003-12-19 Fariborz Jahanian <fjahanian@apple.com>
* config/rs6000/rs6000.c (legitimate_offset_address_p): offset of a
DImode/DFmode, etc. must be multiple of 4.


Attachment: patch_3479718.txt
Description: Text document




Test case:


Attachment: darwin-misaligned.c
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]