Query use of HAVE_xxx

grahams@rcp.co.uk grahams@rcp.co.uk
Sat Apr 25 13:27:00 GMT 1998


Hi

I have noticed a potential problem with the use of the HAVE_xxx macros
defined in "insn-config.h" which is generated automatically from the   
machine
description files by genconfig.

I have noticed than gcc/jump.c has code conditionally compiled dependent
on the definition of the HAVE_cc0 macro which is defined in insn-config.h   

if the machine description supports CC0.

The problem is jump.c does not include insn-config.h either directly or
indirectly and thus will never see any definition of HAVE_cc0 that may
be in "insn-config.h"

The above example is almost definately not the only instanace where a
HAVE_xxx macro is tested, but insn-config.h has not been included.

Does anybody have any comments?

Graham




More information about the Gcc mailing list