public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* libio/gen-params
@ 1999-05-18  3:16 Michael Hayes
  1999-05-20  1:56 ` libio/gen-params Jeffrey A Law
  1999-05-31 21:36 ` libio/gen-params Michael Hayes
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Hayes @ 1999-05-18  3:16 UTC (permalink / raw)
  To: bothner; +Cc: egcs

To build libio for the C4x, I had to apply the following hack.  Is
there a better mechanism that doesn't rely on guessing the modes
corresponding to the data sizes?

Michael.


Index: gen-params
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/gen-params,v
retrieving revision 1.9
diff -c -3 -p -r1.9 gen-params
*** gen-params	1999/03/23 23:58:21	1.9
--- gen-params	1999/05/18 10:09:09
*************** fi
*** 378,384 ****
  [ -z "$uint32_t" ] && uint32_t="unsigned $int32_t"
  
  cat <<!EOF!
! #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
  typedef          int   ${macro_prefix}int8_t __attribute__((__mode__(__QI__)));
  typedef unsigned int  ${macro_prefix}uint8_t __attribute__((__mode__(__QI__)));
  typedef          int  ${macro_prefix}int16_t __attribute__((__mode__(__HI__)));
--- 378,384 ----
  [ -z "$uint32_t" ] && uint32_t="unsigned $int32_t"
  
  cat <<!EOF!
! #if !defined(_C4x) && !defined(_C3x) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
  typedef          int   ${macro_prefix}int8_t __attribute__((__mode__(__QI__)));
  typedef unsigned int  ${macro_prefix}uint8_t __attribute__((__mode__(__QI__)));
  typedef          int  ${macro_prefix}int16_t __attribute__((__mode__(__HI__)));






^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libio/gen-params
  1999-05-18  3:16 libio/gen-params Michael Hayes
@ 1999-05-20  1:56 ` Jeffrey A Law
  1999-05-20 11:17   ` libio/gen-params Joern Rennecke
                     ` (2 more replies)
  1999-05-31 21:36 ` libio/gen-params Michael Hayes
  1 sibling, 3 replies; 8+ messages in thread
From: Jeffrey A Law @ 1999-05-20  1:56 UTC (permalink / raw)
  To: Michael Hayes; +Cc: bothner, egcs

  In message < 14145.15214.233519.786315@ongaonga.elec.canterbury.ac.nz >you writ
e:
  > 
  > To build libio for the C4x, I had to apply the following hack.  Is
  > there a better mechanism that doesn't rely on guessing the modes
  > corresponding to the data sizes?
BTW, modes actually are the most accurate data size indicators we have.  Only
the c3x/c4x ports break those assumptions.

jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libio/gen-params
  1999-05-20  1:56 ` libio/gen-params Jeffrey A Law
@ 1999-05-20 11:17   ` Joern Rennecke
  1999-05-31 21:36     ` libio/gen-params Joern Rennecke
  1999-05-21 18:55   ` libio/gen-params Michael Hayes
  1999-05-31 21:36   ` libio/gen-params Jeffrey A Law
  2 siblings, 1 reply; 8+ messages in thread
From: Joern Rennecke @ 1999-05-20 11:17 UTC (permalink / raw)
  To: law; +Cc: m.hayes, bothner, egcs

> BTW, modes actually are the most accurate data size indicators we have.  Only
> the c3x/c4x ports break those assumptions.

Don't forget 1750a and dsp16xx - they have BITS_PER_UNIT as 16.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libio/gen-params
  1999-05-20  1:56 ` libio/gen-params Jeffrey A Law
  1999-05-20 11:17   ` libio/gen-params Joern Rennecke
@ 1999-05-21 18:55   ` Michael Hayes
  1999-05-31 21:36     ` libio/gen-params Michael Hayes
  1999-05-31 21:36   ` libio/gen-params Jeffrey A Law
  2 siblings, 1 reply; 8+ messages in thread
From: Michael Hayes @ 1999-05-21 18:55 UTC (permalink / raw)
  To: law; +Cc: Michael Hayes, bothner, egcs

Jeffrey A Law writes:

 > BTW, modes actually are the most accurate data size indicators we have.

It would be trivial to patch c-common.c to add additional attributes
that would select the mode with a size greater than or equal to the
desired number of bits.

If this is worthwhile, I'll submit a patch.

Michael.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libio/gen-params
  1999-05-20 11:17   ` libio/gen-params Joern Rennecke
@ 1999-05-31 21:36     ` Joern Rennecke
  0 siblings, 0 replies; 8+ messages in thread
From: Joern Rennecke @ 1999-05-31 21:36 UTC (permalink / raw)
  To: law; +Cc: m.hayes, bothner, egcs

> BTW, modes actually are the most accurate data size indicators we have.  Only
> the c3x/c4x ports break those assumptions.

Don't forget 1750a and dsp16xx - they have BITS_PER_UNIT as 16.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libio/gen-params
  1999-05-21 18:55   ` libio/gen-params Michael Hayes
@ 1999-05-31 21:36     ` Michael Hayes
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Hayes @ 1999-05-31 21:36 UTC (permalink / raw)
  To: law; +Cc: Michael Hayes, bothner, egcs

Jeffrey A Law writes:

 > BTW, modes actually are the most accurate data size indicators we have.

It would be trivial to patch c-common.c to add additional attributes
that would select the mode with a size greater than or equal to the
desired number of bits.

If this is worthwhile, I'll submit a patch.

Michael.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libio/gen-params
  1999-05-20  1:56 ` libio/gen-params Jeffrey A Law
  1999-05-20 11:17   ` libio/gen-params Joern Rennecke
  1999-05-21 18:55   ` libio/gen-params Michael Hayes
@ 1999-05-31 21:36   ` Jeffrey A Law
  2 siblings, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1999-05-31 21:36 UTC (permalink / raw)
  To: Michael Hayes; +Cc: bothner, egcs

  In message < 14145.15214.233519.786315@ongaonga.elec.canterbury.ac.nz >you writ
e:
  > 
  > To build libio for the C4x, I had to apply the following hack.  Is
  > there a better mechanism that doesn't rely on guessing the modes
  > corresponding to the data sizes?
BTW, modes actually are the most accurate data size indicators we have.  Only
the c3x/c4x ports break those assumptions.

jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* libio/gen-params
  1999-05-18  3:16 libio/gen-params Michael Hayes
  1999-05-20  1:56 ` libio/gen-params Jeffrey A Law
@ 1999-05-31 21:36 ` Michael Hayes
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Hayes @ 1999-05-31 21:36 UTC (permalink / raw)
  To: bothner; +Cc: egcs

To build libio for the C4x, I had to apply the following hack.  Is
there a better mechanism that doesn't rely on guessing the modes
corresponding to the data sizes?

Michael.


Index: gen-params
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/gen-params,v
retrieving revision 1.9
diff -c -3 -p -r1.9 gen-params
*** gen-params	1999/03/23 23:58:21	1.9
--- gen-params	1999/05/18 10:09:09
*************** fi
*** 378,384 ****
  [ -z "$uint32_t" ] && uint32_t="unsigned $int32_t"
  
  cat <<!EOF!
! #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
  typedef          int   ${macro_prefix}int8_t __attribute__((__mode__(__QI__)));
  typedef unsigned int  ${macro_prefix}uint8_t __attribute__((__mode__(__QI__)));
  typedef          int  ${macro_prefix}int16_t __attribute__((__mode__(__HI__)));
--- 378,384 ----
  [ -z "$uint32_t" ] && uint32_t="unsigned $int32_t"
  
  cat <<!EOF!
! #if !defined(_C4x) && !defined(_C3x) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
  typedef          int   ${macro_prefix}int8_t __attribute__((__mode__(__QI__)));
  typedef unsigned int  ${macro_prefix}uint8_t __attribute__((__mode__(__QI__)));
  typedef          int  ${macro_prefix}int16_t __attribute__((__mode__(__HI__)));






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-05-31 21:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-18  3:16 libio/gen-params Michael Hayes
1999-05-20  1:56 ` libio/gen-params Jeffrey A Law
1999-05-20 11:17   ` libio/gen-params Joern Rennecke
1999-05-31 21:36     ` libio/gen-params Joern Rennecke
1999-05-21 18:55   ` libio/gen-params Michael Hayes
1999-05-31 21:36     ` libio/gen-params Michael Hayes
1999-05-31 21:36   ` libio/gen-params Jeffrey A Law
1999-05-31 21:36 ` libio/gen-params Michael Hayes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).