--- Comment #5 from batt at develer dot com 2006-11-07 11:10 ---
Here's the testcase:
==
int main(int argc, char *argv[])
{
float O1 = argc;
float V1 = argc+2;
int ret = O1 * V1;
return ret;
}
==
[EMAIL PROTECTED]:~/src$ /usr/local/avr-3.4.4-install/bin/avr-gcc -Os
-Wl,-Map=bug29524.map,--cref bug29524.c && grep -P "0x0.*__clz" bug29524.map
[EMAIL PROTECTED]:~/src$ /usr/local/avr-4.1.1-batt/bin/avr-gcc -Os
-Wl,-Map=bug29524.map,--cref bug29524.c && grep -P "0x0.*__clz" bug29524.map
[EMAIL PROTECTED]:~/src$ /usr/local/avr-4.2-20061014-install/bin/avr-gcc -Os
-Wl,-Map=bug29524.map,--cref bug29524.c && grep -P "0x0.*__clz" bug29524.map
0x0434__clzsi2
0x00800068__clz_tab
These are the three compilers:
[EMAIL PROTECTED]:~/src$ /usr/local/avr-3.4.4-install/bin/avr-gcc -v
Reading specs from /usr/local/avr-3.4.4-install/bin/../lib/gcc/avr/3.4.4/specs
Configured with: ../configure --prefix=/usr/local/avr-3.4.4-install/
--target=avr --enable-languages=c,c++ --enable-multilib --with-dwarf2
--disable-libmudflap --enable-target-optspace --enable-threads=single
--with-gnu-ld --enable-install-libbfd --disable-werror --disable-gdbtk
--disable-libmudflap --disable-nls --disable-__cxa_atexit --disable-clocale
--disable-c-mbchar --disable-long-long --without-newlib
Thread model: single
gcc version 3.4.4
[EMAIL PROTECTED]:~/src$ /usr/local/avr-4.1.1-batt/bin/avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../configure --prefix=/usr/local/avr --target=avr
--enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2 :
(reconfigured) ../configure --prefix=/usr/local/avr --target=avr --disable-nls
--disable-libssp --with-dwarf2 --enable-languages=c,c++ --no-create
--no-recursion
Thread model: single
gcc version 4.1.2 20061030 (prerelease)-batt-avr1281
[EMAIL PROTECTED]:~/src$ /usr/local/avr-4.2-20061014-install/bin/avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../configure --prefix=/usr/local/avr --target=avr
--enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2
Thread model: single
gcc version 4.2.0 20061014 (experimental)
As you can see, the clz_tab is linked in only with the SVN version of 4.2, and
it's not linked in with 4.1.1. I also used -Os (which is the compiler switch I
care about).
--
batt at develer dot com changed:
What|Removed |Added
Status|WAITING |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29524