This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tiny gcc patch...
- To: Geoffrey KEATING <geoffk at discus dot anu dot edu dot au>
- Subject: Re: Tiny gcc patch...
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 19 Jun 1998 01:03:30 -0600
- cc: edelsohn at mhpcc dot edu, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199805120808.SAA28912@discus.anu.edu.au>you write:
>
> (see attached)
>
> In tree.h, it says:
> /* Nonzero in a VAR_DECL means assembler code has been written.
> Nonzero in a FUNCTION_DECL means that the function has been compiled.
> ...
> Nonzero in a RECORD_TYPE, UNION_TYPE, QUAL_UNION_TYPE or ENUMERAL_TYPE
> if the sdb debugging info for the type has been written.
> In a BLOCK node, nonzero if reorder_blocks has already seen this block.
> */
> #define TREE_ASM_WRITTEN(NODE) ((NODE)->common.asm_written_flag)
>
> In c-decl.c (duplicate_decls), it sets TREE_ASM_WRITTEN sometimes when
> it's just seen two declarations. In several places, rs6000.[ch]
> expect that TREE_ASM_WRITTEN means we've really written out the code
> for the function, so the function must be defined in this file.
[ ... ]
This should be fixed in the mainline sources now. I'm not sure if we
need to fix this for VAR_DECLs either. For now we just handle
FUNCTION_DECLs.
jeff