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] Speed up get_ref_base_and_extent


On 3/28/07, Eric Botcazou <ebotcazou@adacore.com> wrote:
> 2007-03-27  Richard Guenther  <rguenther@suse.de>
>
>       * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
>       computations with it with a HOST_WIDE_INT variable.

A little problematic for Ada because offsets can be negative (see
ada/utils.c:shift_unc_components_for_thin_pointers).  Testcase attached.

OK to install?

A little bit weird, but you know ada, so - ok ;) (negative offsets??? oh well...)

Richard.


2007-03-28 Eric Botcazou <ebotcazou@adacore.com>


        * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
        offsets for BIT_FIELD_REF and COMPONENT_REF.


2007-03-28 Eric Botcazou <ebotcazou@adacore.com>


* gnat.dg/thin_pointer.ad[sb]: New test.


-- Eric Botcazou




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