This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: current_funcdef_number vs. except.c


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]