This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH,fortran]: Emit COMMON identifiers in proper debug scope



On 20 Mar 2008, at 17:15, Jason Merrill wrote:


It looks like this patch can generate DW_TAG_common_block for languages other than FORTRAN, which seems undesirable. Specifically, it seems that any use of DECL_VALUE_EXPR could trigger this code, such as anonymous unions in C++. I notice that you even have C++-specific code in common_check.

Jason



Thanks for spotting that; easily guarded against with an !if_fortran() test at the start of common_check. With that, the C++-specific code can be eliminated, too.


--
George Helffrich


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