current_funcdef_number vs. except.c
Richard Henderson
rth@redhat.com
Mon May 21 13:15:00 GMT 2001
On Mon, May 21, 2001 at 10:45:24AM -0700, Mark Mitchell wrote:
> Unfortunately, current_funcdef_number is only defined in dwarf2out.c,
> and that entire file is conditionally compiled on:
>
> #if defined (DWARF2_DEBUGGING_INFO) || defined (DWARF2_UNWIND_INFO)
>
> So, if you are (say) HPUX11 and don't use DWARF2 at all, you get an
> undefined reference to this variable.
Hmm. Ideally we'd just put this number in struct function
and be done with it.
Short term, either we can move the definition to except.c, or
move it in dwarf2out.c such that it's outside the ifdefs. I
guess I don't care which. Preferences?
r~
More information about the Gcc
mailing list