------- Comment #6 from aldot at gcc dot gnu dot org  2008-01-27 13:36 -------
$ for i in 2.95 3.3 3.4 4.1 4.3.orig-HEAD 4.3-HEAD;do echo "# GCC $(gcc-$i
--version | sed 1q)";gcc-$i -Os -c -o pr.o.gcc-$i pr23782.c;done
# GCC 2.95.4
pr23782.c:8: warning: `fastcall' attribute directive ignored
# GCC gcc-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-15)
pr23782.c:8: warning: `fastcall' attribute directive ignored
# GCC gcc-3.4 (GCC) 3.4.6 (Debian 3.4.6-5)
# GCC gcc-4.1 (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
# GCC gcc-4.3.orig-HEAD (GCC) 4.3.0 20080112 (experimental)
# GCC gcc-4.3-HEAD (GCC) 4.3.0 20080126 (experimental)
$ size *.o.*
   text    data     bss     dec     hex filename
    266       0       0     266     10a pr.o.gcc-2.95
    202       0       0     202      ca pr.o.gcc-3.3
    230       0       0     230      e6 pr.o.gcc-3.4
    284       0       0     284     11c pr.o.gcc-4.1
    281       0       0     281     119 pr.o.gcc-4.3-HEAD
    281       0       0     281     119 pr.o.gcc-4.3.orig-HEAD

the same with -fomit-frame-pointer is even worse for 4.x:

$ for i in 2.95 3.3 3.4 4.1 4.3.orig-HEAD 4.3-HEAD;do echo "# GCC $(gcc-$i
--version | sed 1q)";gcc-$i -Os -fomit-frame-pointer  -c -o pr.o.gcc-$i
pr23782.c;done
# GCC 2.95.4
pr23782.c:8: warning: `fastcall' attribute directive ignored
# GCC gcc-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-15)
pr23782.c:8: warning: `fastcall' attribute directive ignored
# GCC gcc-3.4 (GCC) 3.4.6 (Debian 3.4.6-5)
# GCC gcc-4.1 (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
# GCC gcc-4.3.orig-HEAD (GCC) 4.3.0 20080112 (experimental)
# GCC gcc-4.3-HEAD (GCC) 4.3.0 20080126 (experimental)
$ size *.o.*
   text    data     bss     dec     hex filename
    271       0       0     271     10f pr.o.gcc-2.95
    199       0       0     199      c7 pr.o.gcc-3.3
    239       0       0     239      ef pr.o.gcc-3.4
    313       0       0     313     139 pr.o.gcc-4.1
    315       0       0     315     13b pr.o.gcc-4.3-HEAD
    315       0       0     315     13b pr.o.gcc-4.3.orig-HEAD


-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |target


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

Reply via email to