Le 09/03/2012 17:10, Bernd Schmidt a écrit : > On 03/09/2012 04:20 PM, Aurelien Buhrig wrote: >> I'm not used to work at tree level for now and it is unclear for me what >> part of the code should be tweaked. Can you tell me which part of the >> code you are fixing/looking at, so that I can have a better >> understanding of ptr_mode vs Pmode before your fix? > > I'm thinking the bitfield code in expmed.c (extract_bit_field_1 etc.) > needs a subreg_offset_representable_p check, followed by looking for the > next larger integer mode if that fails. Then, if necessary, cast the > result back to the original mode in case of extraction. >
Thanks. My current bug seems to be related to the dual store_bit_field_1 function. I submitted a bug and a patch some times ago about extract_bit_field_1, which seems to only apply to my BIG_ENDIAN target. If you have a quite similar target, perhaps it will help. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51893 Aurélien