public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35860]  New: code bloat caused by -fsplit-wide-types
@ 2008-04-07 21:36 a dot kaiser at gmx dot net
  2008-04-07 21:38 ` [Bug target/35860] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: a dot kaiser at gmx dot net @ 2008-04-07 21:36 UTC (permalink / raw)
  To: gcc-bugs

Command:
  avr-gcc -O1 -S div32_7.c
or
  avr-gcc -O1 -fno-split-wide-types -S div32_7.c

Code size 4.1.2: 0x28
Code size 4.3.0: 0x68
Code size 4.3.0: 0x28 with -fno-split-wide-types

//----------------
unsigned long udivr32_7( unsigned long a, unsigned char b, unsigned char *r )
{
  unsigned char i, t;

  for(  t = 0, i = 32; i ; i-- ){
    t += t;
    if( a & 0x80000000UL )
      t++;
    a += a;
    if( t >= b ){
      t -= b;
      a |= 1;
    }
  }
  *r = t;
  return a;
}
//----------------


-- 
           Summary: code bloat caused by -fsplit-wide-types
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: a dot kaiser at gmx dot net
  GCC host triplet: winavr 20080402 release
GCC target triplet: avr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35860


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

end of thread, other threads:[~2010-05-22 18:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-07 21:36 [Bug c/35860] New: code bloat caused by -fsplit-wide-types a dot kaiser at gmx dot net
2008-04-07 21:38 ` [Bug target/35860] " pinskia at gcc dot gnu dot org
2008-04-09 19:05 ` eric dot weddington at atmel dot com
2008-04-09 19:24 ` hutchinsonandy at aim dot com
2008-04-09 22:09 ` [Bug target/35860] [avr] " eric dot weddington at atmel dot com
2008-04-13  0:34 ` [Bug target/35860] [4.3 Regression] " hutchinsonandy at gcc dot gnu dot org
2008-04-15 12:27 ` bonzini at gnu dot org
2008-04-16  8:59 ` steven at gcc dot gnu dot org
2008-04-16 13:10 ` hutchinsonandy at aim dot com
2008-06-11 11:12 ` [Bug target/35860] [4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-06-12 10:17 ` jakub at gcc dot gnu dot org
2008-08-27 22:08 ` jsm28 at gcc dot gnu dot org
2009-01-24 10:26 ` rguenth at gcc dot gnu dot org
2009-08-04 12:39 ` [Bug target/35860] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
2010-05-22 18:23 ` [Bug target/35860] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org

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).