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: [3.4-BIB] fix profiling


> Paul Koning wrote:
> >>>>>>"Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:
> 
> > Nathan> Honza, why is this change necessary? unsigned will be at
> > Nathan> least 32bits (gcc doesn't target 16bit int abis).
> >
> >Huh?  Pdp11 is (unless overridden by -mint32) a target with 16-bit
> >ints.
> oo, didn't know that. The documentation is incorrect.
> 
> doc/portability.texi says
> 'The main goal of GCC was to make a good, fast compiler for machines in
> the class that the GNU system aims to run on: 32-bit machines that address
> 8-bit bytes and have several general registers.'
> 
> er, ok that doesn't say the target has 32bit ints. My mistake. The gnu
> coding conventions also say (from autoconf)
> 'However, don't make any effort to cater to the possibility that an
> @code{int} will be less than 32 bits.  We don't support 16-bit machines
> in GNU.'
> ... so I didn't :)
> 
> I know how to dink the gcov declarations to make them work on 16-bit int
> ABIs. Should we?

Yes, you should make libgcc to work on 16bit ints, but it is not needed
for gcov or gcc itself.
libgcc should also work on 9bit chars and similar weirdness.

The reason why I changed the declaration was the fact that the constant
has been already output as 64bit, probably because of typo and I didn't
want to run into problems with 16bit/8bit machines.

Honza
> 
> I'm still none the wiser about Honza's 64 bit issue.
> 
> nathan
> 
> -- 
> Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
>          'But that's a lie.' - 'Yes it is. What's your point?'
> nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
> 


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