This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PCH failures on SPARC


Hi Eric,

I believe that your patch causes some difficulty with the .stabs output
on PA ports using som.h.  Here is an example of an incorrect .stabs
line.  It causes 20011119-1.c to fail.

        .stabs  "*xxx:F1",36,0,3,xxx
	.EXPORT xxx,ENTRY,PRIV_LEV=3,RTNVAL=GR
	.stabn 68,0,0,0
xxx
	.PROC
	.CALLINFO FRAME=0,CALLS,SAVE_RP
	.ENTRY
	.stabn 68,0,3,L$M2-*xxx

The last line causes an assembler error:

/var/tmp//ccvFw2Ty.s: Assembler messages:
/var/tmp//ccvFw2Ty.s:47: Error: bad expression
/var/tmp//ccvFw2Ty.s:47: Warning: rest of line ignored; first ignored character 
is `x'

I believe that the patch needs to strip the encoding from the function
string.  That's where the `*' comes from.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]