🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #7

Likely gcc error

#7
From: JimLane
Date: Tue, 27 Oct 1992 19:18
85 lines
4240 bytes
  I believe gcc generated incorrect object code. Below are 
  two different compilations of ws_pm.c in
  /mit/extensions/lib/PEX/ws of the X distribution.  If you
  will notice the symbol XtStrings you will see that the 
  native compiler correctly labeled it as data while the
  gcc compiler labeled it as code causing the linker to
  hiccup.  This was done on a hp9000/730 running hpux 8.07
  using gcc version 2.2.2.

                                       JimLane (lane@spot.colorado.edu)

------------------------------------------------------------

nag:ws> gcc +O1 -I../include -I../../../include/PEX
-I../../../../X11 -I../../../../. -DSYSV -c ws_pm.c
gcc: +O1: linker input file unused since linking not done
nag:ws> !nm
nm ws_pm.o

Symbols from ws_pm.o:

Name                    Value   Scope  Type    Subspace

$global$            |          |undef |data   |
XtPopdown           |          |undef |code   |
done_button         |         0|static|code   |$CODE$
XtVaCreatePopupShell|          |undef |code   |
applicationShellWidgetClass|          |undef |data   |
LC$0000             |       164|static|code   |$CODE$
XtVaCreateManagedWidget|          |undef |code   |
boxWidgetClass      |          |undef |data   |
LC$0001             |       172|static|code   |$CODE$
commandWidgetClass  |          |undef |data   |
LC$0002             |       176|static|code   |$CODE$
XtAddCallback       |          |undef |code   |
XtStrings           |          |undef |code   |     <<<<<<<<<<<<<<<<<<<<<<<
labelWidgetClass    |          |undef |data   |
LC$0003             |       184|static|code   |$CODE$
create_message_win  |       192|static|code   |$CODE$
XtUnmanageChild     |          |undef |code   |
XtVaSetValues       |          |undef |code   |
XtManageChild       |          |undef |code   |
XtPopup             |          |undef |code   |
message             |       532|static|code   |$CODE$
phg_wsx_pm_create_message_win|       864|extern|code   |$CODE$

---------------------------------------------------------------------
nag:ws> cc +O1 -I../include -I../../../include/PEX -I../../../../X11 -I../../../../. -DSYSV -c ws_pm.c
nag:ws> !nm
nm ws_pm.o

Symbols from ws_pm.o:

Name                    Value   Scope  Type    Subspace

$str_lit_sym$       |1073741824|static|data   |$DATA$
$THIS_DATA$         |1073741824|static|data   |$DATA$
$THIS_SHORTDATA$    |1073741856|static|data   |$SHORTDATA$
$THIS_BSS$          |1073741856|static|data   |$BSS$
$THIS_SHORTBSS$     |1073741856|static|data   |$SHORTBSS$
$THIS_STATICDATA$   |1073741856|static|data   |$STATICDATA$
$THIS_SHORTSTATICDATA$|1073741856|static|data   |$SHORTSTATICDATA$
$THIS_LIT$          |       368|static|code   |$LIT$
$THIS_LITSTATIC$    |       368|static|code   |$LITSTATIC$
$global$            |          |undef |data   |
XtStrings           |          |undef |data   |    <<<<<<<<<<<<<<<<<<<<<<<<
applicationShellWidgetClass|          |undef |data   |
boxWidgetClass      |          |undef |data   |
labelWidgetClass    |          |undef |data   |
commandWidgetClass  |          |undef |data   |
done_button         |         0|static|entry  |$CODE$
XtPopdown           |          |undef |code   |
create_message_win  |        32|static|entry  |$CODE$
XtVaCreatePopupShell|          |undef |code   |
XtVaCreateManagedWidget|          |undef |code   |
XtAddCallback       |          |undef |code   |
message             |       224|static|entry  |$CODE$
XtUnmanageChild     |          |undef |code   |
XtVaSetValues       |          |undef |code   |
XtManageChild       |          |undef |code   |
XtPopup             |          |undef |code   |
phg_wsx_pm_create_message_win|       336|extern|entry  |$CODE$
v
v
Technical Details
Message-ID: <199210280918.AA11417@spot.Colorado.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!spot.colorado.edu!lane

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!spot.colorado.edu!lane
From: lane@spot.colorado.edu (JimLane)
Newsgroups: gnu.gcc.bug
Subject: Likely gcc error
Message-ID: <199210280918.AA11417@spot.Colorado.EDU>
Date: 27 Oct 92 19:18:24 GMT
Article-I.D.: spot.199210280918.AA11417
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: Gnus Not Usenet
Lines: 85
Approved: bug-gcc@prep.ai.mit.edu