public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/53231] New: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function)
@ 2012-05-04 12:07 danglin at gcc dot gnu.org
  2012-05-04 12:10 ` [Bug other/53231] " danglin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-05-04 12:07 UTC (permalink / raw)
  To: gcc-bugs

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....


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/53231] libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function)
  2012-05-04 12:07 [Bug other/53231] New: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function) danglin at gcc dot gnu.org
@ 2012-05-04 12:10 ` danglin at gcc dot gnu.org
  2012-05-22 23:57 ` danglin at gcc dot gnu.org
  2012-05-23  0:13 ` danglin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-05-04 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> 2012-05-04 12:10:17 UTC ---
Also occurs on hppa64-hp-hpux11.11.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/53231] libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function)
  2012-05-04 12:07 [Bug other/53231] New: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function) danglin at gcc dot gnu.org
  2012-05-04 12:10 ` [Bug other/53231] " danglin at gcc dot gnu.org
@ 2012-05-22 23:57 ` danglin at gcc dot gnu.org
  2012-05-23  0:13 ` danglin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-05-22 23:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> 2012-05-22 23:54:36 UTC ---
Author: danglin
Date: Tue May 22 23:54:32 2012
New Revision: 187783

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187783
Log:
    PR other/53231
    * tas_n.c (libat_test_and_set): Correct return.  Remove unused variable.


Modified:
    trunk/libatomic/ChangeLog
    trunk/libatomic/tas_n.c


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug other/53231] libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function)
  2012-05-04 12:07 [Bug other/53231] New: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function) danglin at gcc dot gnu.org
  2012-05-04 12:10 ` [Bug other/53231] " danglin at gcc dot gnu.org
  2012-05-22 23:57 ` danglin at gcc dot gnu.org
@ 2012-05-23  0:13 ` danglin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: danglin at gcc dot gnu.org @ 2012-05-23  0:13 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> 2012-05-22 23:56:54 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-22 23:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-04 12:07 [Bug other/53231] New: libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function) danglin at gcc dot gnu.org
2012-05-04 12:10 ` [Bug other/53231] " danglin at gcc dot gnu.org
2012-05-22 23:57 ` danglin at gcc dot gnu.org
2012-05-23  0:13 ` danglin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).