Possible bug in gas/frags.c

Guy.McCarthy@microchip.com Guy.McCarthy@microchip.com
Thu Feb 6 20:28:00 GMT 2003


The latest version of frags.c does not seem to call TC_FRAG_INIT
in all the right places. I think a call is missing from frag_new().

To demonstrate the problem, insert a diagnostic into gas/config/tc-XXX.h:

#define TC_FRAG_INIT(FRAGP) printf("tc_frag_init: %lx\n", (FRAGP));

Note the number of frags listed when assembling a trivial file:

.text
.byte 1,2

Next, add a TC_FRAG_INIT call to frag_new() and re-assemble. The number
of frags listed will be much greater.

Regards,

Guy McCarthy
Microchip Technology Inc.



More information about the Binutils mailing list