One needs to introduce things with a `.file' directive before trying to

do a .loc on it.  BTW, the .loc needs to be in a .text section.
gas 2.11.0 catches these oversights where previous versions did not.
This commit is contained in:
obrien 2001-05-28 09:52:21 +00:00
parent d85b77042d
commit 01707e0035
4 changed files with 15 additions and 3 deletions

View File

@ -43,7 +43,10 @@
__KERNEL_RCSID(1, "$NetBSD: pal.s,v 1.12 1998/02/27 03:44:53 thorpej Exp $");
inc2: .stabs __FILE__,132,0,0,inc2; .loc 1 __LINE__
inc2: .stabs __FILE__,132,0,0,inc2
.text
.loc 1 __LINE__
/*
* alpha_rpcc: read process cycle counter (XXX INSTRUCTION, NOT PALcode OP)
*/

View File

@ -39,7 +39,9 @@ __KERNEL_RCSID(2, "$NetBSD: prom_disp.s,v 1.8 1997/11/03 04:22:03 ross Exp $");
.text
.align 4
inc3: .stabs __FILE__,132,0,0,inc3; .loc 1 __LINE__
inc3: .stabs __FILE__,132,0,0,inc3
.text
.loc 1 __LINE__
/*
* Dispatcher routine. Implements prom's calling machinery, saves our
* callee-saved registers as required by C.

View File

@ -226,6 +226,12 @@
*
*/
/*
* for `.loc' uses
*/
.file 1 __FILE__
/*
* MCOUNT
*/

View File

@ -44,7 +44,8 @@
#include <machine/asm.h>
inc2: .stabs __FILE__,132,0,0,inc2; .loc 1 __LINE__
/*inc2: .stabs __FILE__,132,0,0,inc2; .loc 1 __LINE__*/
inc2: .stabs __FILE__,132,0,0,inc2
/*
* alpha_rpcc: read process cycle counter (XXX INSTRUCTION, NOT PALcode OP)
*/