http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53231
Bug #: 53231 Summary: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function) Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: dang...@gcc.gnu.org Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu /bin/bash ./libtool --tag=CC --mode=compile /home/dave/gnu/gcc/objdir/./gcc/xg cc -B/home/dave/gnu/gcc/objdir/./gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-li nux-gnu/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/lib/ -isystem /ho me/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/include -isystem /home/dave/opt/gnu /gcc/gcc-4.8.0/hppa-linux-gnu/sys-include -DHAVE_CONFIG_H -I../../../gcc/liba tomic/config/posix -I../../../gcc/libatomic -I. -Wall -Werror -pthread -g -O 2 -MT tas_1_.lo -MD -MP -MF .deps/tas_1_.lo.Ppo -DN=1 -c -o tas_1_.lo ../../../ gcc/libatomic/tas_n.c yes checking for struct stat.st_blocks... libtool: compile: /home/dave/gnu/gcc/objd ir/./gcc/xgcc -B/home/dave/gnu/gcc/objdir/./gcc/ -B/home/dave/opt/gnu/gcc/gcc-4. 8.0/hppa-linux-gnu/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/lib/ - isystem /home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/include -isystem /home/d ave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/sys-include -DHAVE_CONFIG_H -I../../../ gcc/libatomic/config/posix -I../../../gcc/libatomic -I. -Wall -Werror -pthread - g -O2 -MT tas_1_.lo -MD -MP -MF .deps/tas_1_.lo.Ppo -DN=1 -c ../../../gcc/libato mic/tas_n.c -fPIC -DPIC -o .libs/tas_1_.o ../../../gcc/libatomic/tas_n.c: In function 'libat_test_and_set_1': ../../../gcc/libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in thi s function) return ret != 0; ^ ../../../gcc/libatomic/tas_n.c:100:10: note: each undeclared identifier is repor ted only once for each function it appears in return ret != 0; ^ ../../../gcc/libatomic/tas_n.c:88:17: error: unused variable 'newval' [-Werror=unused-variable] UTYPE oldval, newval; ^ ../../../gcc/libatomic/tas_n.c:88:9: error: variable 'oldval' set but not used [-Werror=unused-but-set-variable] UTYPE oldval, newval; ^ ../../../gcc/libatomic/tas_n.c:101:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors make[4]: *** [tas_1_.lo] Error 1 make[4]: Leaving directory `/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libatomic' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libatomic' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libatomic' make[1]: *** [all-target-libatomic] Error 2 make[1]: *** Waiting for unfinished jobs....