avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] inttypes.h cleanup for -mint8


From: Theodore A. Roth
Subject: Re: [avr-libc-dev] inttypes.h cleanup for -mint8
Date: Tue, 12 Nov 2002 16:52:04 -0800 (PST)

On Wed, 13 Nov 2002, Nils Kristian Strøm wrote:

:) char = int = short = 8 bit
:) long = 16 bit
:) long long = 32 bit
:)
:) This is a very simple patch for GCC (just see below).  The only drawback is
:) that 64 bit variables is not possible with -mint8.

This sounds sane to me. If you really need -mint8, you probably don't care
about 64 values anyways.

Your gcc patch looks fine to me, but I'm not a gcc maintainer so I can't
do much about it.

Ted Roth



:)
:) Regardless of this patch, the good work in making avr-libc mint8 proof is 
very
:) much appreciated.  As soon as inttypes.h is fixed, and used throughout
:) avr-libc, future work (like changing the meaning of "long long") will not
:) cause a broken libc.
:)
:) Index: avr.h
:) ===================================================================
:) RCS file: /cvsroot/gcc/gcc/config/avr/avr.h,v
:) retrieving revision 1.71
:) diff -c -3 -p -r1.71 avr.h
:) *** avr.h       24 Sep 2002 12:48:52 -0000      1.71
:) --- avr.h       12 Nov 2002 23:17:00 -0000
:) *************** extern int avr_asm_only_p;
:) *** 204,210 ****
:)      used in `cpp'.  */
:)
:)
:) ! #define LONG_LONG_TYPE_SIZE 64
:)   /* A C expression for the size in bits of the type `long long' on the
:)      target machine.  If you don't define this, the default is two
:)      words.  If you want to support GNU Ada on your machine, the value
:) --- 204,210 ----
:)      used in `cpp'.  */
:)
:)
:) ! #define LONG_LONG_TYPE_SIZE (INT_TYPE_SIZE == 8 ? 32 : 64)
:)   /* A C expression for the size in bits of the type `long long' on the
:)      target machine.  If you don't define this, the default is two
:)      words.  If you want to support GNU Ada on your machine, the value





reply via email to

[Prev in Thread] Current Thread [Next in Thread]