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]

Re: [PATCH, pretty-ipa] Fix an ice when creating a fancy decl for one element arrays in intra-SRA


On Wed, Mar 18, 2009 at 3:36 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> Hi,
>>
>> as ?it is, ?my ?new ?intraprocedural intra-SRA ?ICEs ?on Tramp3D ?when
>> creating a fancy declaration name ?for an ARRAY_REF because it expects
>> the index ?to be ?a constant. ? However, when the ?array has ?only one
>> element that ?is not ?necessarily the case. ? The patch ?below handles
>> this case by bailing out gracefully.
>
> It is quite amazing you can match this pattern. ?Where do you derrive
> the information that offset must be 0 because array has single element?
> Just out of curiosity :)
> It would probably make a lot of setnse to fold this earlier so the array
> ref become handled component ref too.

get_ref_base_and_extent provides this information.

Richard.


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