From eaff4f5a57cb2f9c92134891e8f87acd76a12ff0 Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Fri, 22 Jan 1993 18:05:01 -0500 Subject: [PATCH] Cygnus<-->FSF merge From-SVN: r3303 --- gcc/dbxout.c | 5 ++++- gcc/flags.h | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b1122a00c6a..d9cc0c653f9 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -726,7 +726,10 @@ dbxout_type_methods (type) if (!warned) { warned = 1; - warning ("dbx info for template class methods not yet supported"); +#ifdef HAVE_TEMPLATES + if (warn_template_debugging) + warning ("dbx info for template class methods not yet supported"); +#endif } return; } diff --git a/gcc/flags.h b/gcc/flags.h index 7238899f773..0e3b28b3b55 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -96,6 +96,11 @@ extern int warn_return_type; extern int warn_cast_align; +/* Nonzero means warn that dbx info for template class methods isn't fully + supported yet. */ + +extern int warn_template_debugging; + /* Nonzero means warn about any identifiers that match in the first N characters. The value N is in `id_clash_len'. */ -- 2.30.2