From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5356 invoked by alias); 4 May 2012 12:07:37 -0000 Received: (qmail 5338 invoked by uid 22791); 4 May 2012 12:07:35 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 May 2012 12:07:21 +0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/53231] New: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function) Date: Fri, 04 May 2012 12:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-05/txt/msg00416.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: danglin@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....