This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: profiling and unsigned_intSI_type_node
- From: Paul Schlie <schlie at comcast dot net>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 04 Apr 2005 03:47:36 -0400
- Subject: Re: profiling and unsigned_intSI_type_node
> Richard Sandiford <rsandifo@redhat.com> writes:
> OK, here's a patch for the profiling code. The profiler currently
> uses the following type-to-tree mappings:
>
> gcov_type -> intSI_type_node (if long long <= 32 bits)
> gcov_type -> intDI_type_node (if long long > 32 bits)
> gcov_unsigned_t -> unsigned_intSI_type_node
>
> As in the ivopts patch, it isn't safe to assume that
>
> GET_MODE_BITSIZE (SImode) == 32
>
> and FWIW, the libgcc parts of gcov-io.h already account for
> BITS_PER_UNIT != 8.
please see:
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg00290.html
the same basic problem here, I'd like to believe the maintainers can get
there hands around this basic problem and propose a clean and simple
solution to being able to simply identify the mode which corresponds to
each target's defined type so that no black magic or guessing is required,
which inevitably breaks something, typically at the unnecessary expense of
smaller less vogue targets.