gdb/2097: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not used

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gdb/2097: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not used

danglin

>Number:         2097
>Category:       gdb
>Synopsis:       hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not used
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 08 03:38:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     [hidden email]
>Release:        unknown-1.0
>Organization:
>Environment:
hppa2.0w-hp-hpux11.11
>Description:
gcc -c -g -O2 -DPA_SOM_ONLY=1   -I. -I../../src/gdb -I../../src/gdb/config -DLOC
ALEDIR="\"/opt/gnu/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/op
code -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/
gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit
-Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wfor
mat-nonliteral -Wunused-label -Wunused-function -Wuninitialized -Werror ../../sr
c/gdb/hpread.c
../../src/gdb/hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not
 used
make[2]: *** [hpread.o] Error 1
>How-To-Repeat:
../src/configure --host=hppa2.0w-hp-hpux11.11 --prefix=/opt/gnu --with-included-
regex --disable-nls &&
make
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
Reply | Threaded
Open this post in threaded view
|

pending/2098: Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not used

Randolph Chung

>Number:         2098
>Category:       pending
>Synopsis:       Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but
 not used

>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Wed Mar 08 03:58:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:    
>Release:        
>Organization:
>Environment:
>Description:
 > ../../src/gdb/hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not
 >  used
 > make[2]: *** [hpread.o] Error 1
 
 This function is used in hpread_start_psymtab() which is called from
 hpread_quick_traverse() which is called from hpread_build_psymtabs()
 which is non-static. I don't know why gcc complains about this. I can
 build this target ok with gcc-3.3.4 and gcc-4.1.0.
 
 randolph
 --
 Randolph Chung
 Debian GNU/Linux Developer, hppa/ia64 ports
 http://www.tausq.org/
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
Reply | Threaded
Open this post in threaded view
|

pending/2099: Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but

John David Anglin-4

>Number:         2099
>Category:       pending
>Synopsis:       Re: hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Wed Mar 08 15:28:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:    
>Release:        
>Organization:
>Environment:
>Description:
 > > ../../src/gdb/hpread.c:2726: warning: 'hpread_psymtab_to_symtab' defined but not
 > >  used
 > > make[2]: *** [hpread.o] Error 1
 >
 > This function is used in hpread_start_psymtab() which is called from
 > hpread_quick_traverse() which is called from hpread_build_psymtabs()
 > which is non-static. I don't know why gcc complains about this. I can
 > build this target ok with gcc-3.3.4 and gcc-4.1.0.
 
 The error was with gcc-3.4.5.  The attached change appears to fix
 the problem.  However, then I hit:
 
 gcc -c -g -O2 -DPA_SOM_ONLY=1   -I. -I../../src/gdb -I../../src/gdb/config -DLOC
 ALEDIR="\"/opt/gnu/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/op
 code -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/
 gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -Wimplicit
 -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wfor
 mat-nonliteral -Wunused-label -Wunused-function -Wuninitialized -Werror ../../sr
 c/gdb/ser-tcp.c
 ../../src/gdb/ser-tcp.c: In function `net_open':
 ../../src/gdb/ser-tcp.c:209: warning: passing arg 5 of `getsockopt' from incompa
 tible pointer type
 make[2]: *** [ser-tcp.o] Error 1
 
 Dave
 --
 J. David Anglin                                  [hidden email]
 National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
 
 Index: hpread.c
 ===================================================================
 RCS file: /cvs/src/src/gdb/hpread.c,v
 retrieving revision 1.58
 diff -u -3 -p -r1.58 hpread.c
 --- hpread.c 17 Dec 2005 22:34:01 -0000 1.58
 +++ hpread.c 8 Mar 2006 15:21:47 -0000
 @@ -2385,7 +2385,6 @@ hpread_start_psymtab (struct objfile *ob
       struct partial_symbol **static_syms)
  {
    int offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
 -  extern void hpread_psymtab_to_symtab ();
    struct partial_symtab *result =
    start_psymtab_common (objfile, objfile->section_offsets,
  filename, textlow, global_syms, static_syms);
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: