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]

Re: Low overhead looping support



  In message <14052.43193.169159.469872@ongaonga.elec.canterbury.ac.nz>you writ
e:
  > While this is a desirable approach in the long term, it would mean
  > that users would have to plaster assert statements throughout their C
  > code.  
  > 
  > In addition, some of these special looping instructions have other
  > caveats (such as disabling interrupts), and as such, their use
  > requires a (target specific) compiler option anyway.
An option to control whether or not these instructions are used is fine.  it
is not unusual at all to have an option to control the use of complicated
insns.

It is not OK to have a flag or pragma which indicates that loops never iterate
more than N times, or loop counters are always unsigned, etc etc.


jeff


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