Thread: 8.3beta3: Compile Warnings
Hi, I get the following compile warnings: gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -I../../../../src/include-D_GNU_SOURCE -c -o like.o like.c like.c: In function `texticnlike': like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' like.c:356: warning: called from here like.c: In function `texticlike': like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' like.c:344: warning: called from here like.c: In function `nameicnlike': like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' like.c:332: warning: called from here like.c: In function `nameiclike': like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' like.c:317: warning: called from here gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -Wno-error -I../include-I../../../../src/interfaces/ecpg/include -I. -DMAJOR_VERSION=4 -DMINOR_VERSION=4 -D PATCHLEVEL=0 -I../../../../src/include -D_GNU_SOURCE -c -o preproc.o preproc.c pgc.c:3864: warning: `yy_flex_realloc' defined but not used Versions: postgresql-8.3beta3gcc (GCC) 3.3.4 (pre 3.3.5 20040809)Linux fooserver 2.6.8-24.25-smp #1 SMP Thu Aug 24 09:57:32UTC 2006 x86_64 x86_64 x86_64 GNU/LinuxSuSE Linux 9.2 (x86-64) Should this reported to the bug tracker? Thomas Güttler -- Thomas Güttler, http://www.tbz-pariv.de/ Bernsdorfer Str. 210-212, 09126 Chemnitz, Tel.: 0371/5347-917 TBZ-PARIV GmbH Geschäftsführer: Dr. Reiner Wohlgemuth Sitz der Gesellschaft: Chemnitz Registergericht: Chemnitz HRB 8543
Tt seems that GCC makes decision do not inline this function and then it will keep as a standard function. It is not problem and this warning is generated by -Winline. I don't have this problem with GCC 3.4.3 Zdenek Thomas Güttler wrote: > Hi, > > I get the following compile warnings: > > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -I../../../../src/include-D_GNU_SOURCE -c -o like.o like.c > like.c: In function `texticnlike': > like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' > like.c:356: warning: called from here > like.c: In function `texticlike': > like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' > like.c:344: warning: called from here > like.c: In function `nameicnlike': > like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' > like.c:332: warning: called from here > like.c: In function `nameiclike': > like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' > like.c:317: warning: called from here > > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -Wno-error -I../include-I../../../../src/interfaces/ecpg/include -I. -DMAJOR_VERSION=4 -DMINOR_VERSION=4 -D > PATCHLEVEL=0 -I../../../../src/include -D_GNU_SOURCE -c -o preproc.o preproc.c > pgc.c:3864: warning: `yy_flex_realloc' defined but not used > > > Versions: > postgresql-8.3beta3 > gcc (GCC) 3.3.4 (pre 3.3.5 20040809) > Linux fooserver 2.6.8-24.25-smp #1 SMP Thu Aug 24 09:57:32 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux > SuSE Linux 9.2 (x86-64) > > Should this reported to the bug tracker? > > Thomas Güttler >
Thomas Güttler <hv@tbz-pariv.de> writes: > I get the following compile warnings: > like.c:137: warning: inlining failed in call to `Generic_Text_IC_like' > Should this reported to the bug tracker? No, because we aren't going to do anything about those. They're purely informational, and the fix would be to get a newer compiler anyway. regards, tom lane