[cfe-dev] PATCH: Mangled Var name in Metadata.

Sanjiv Gupta sanjiv.gupta at microchip.com
Tue Oct 13 23:00:52 PDT 2009


Devang Patel wrote:
> On Mon, Oct 12, 2009 at 4:05 AM, Sanjiv Gupta
> <sanjiv.gupta at microchip.com> wrote:
>   
>> If a target has changed the variable name , it is not currently reflected in
>> Debug Info Metadata. The attached patch gets the name from Var rather than
>> the Decl, let me know if it is the right thing to do.
>>
>>     
>
> OK, go ahead.
> I'm curious, why and how would target change global variable name ?
>
> -
> Devang
>   
PIC16 does.
It converts local vars to globals and mangle their names to avoid collision.
so main () { int a; }  becomes main.a

- Sanjiv




-- 
THIS E-MAIL TRANSMISSION, AND ANY DOCUMENTS, FILES OR PREVIOUS E-MAILS
ATTACHED TO IT, IS CONFIDENTIAL INFORMATION INTENDED ONLY FOR THE USE OF
THE NAMED RECIPIENT(S).  ANY DISSEMINATION, DISTRIBUTION OR DUPLICATION
OF THIS TRANSMISSION IS STRICTLY PROHIBITED.

If you believe you have received this e-mail in error, please notify the
Sender and delete the e-mail from your system.

DISCLAIMER OF LIABILITY:

This transmittal and any accompanying information is for suggestion only
and is provided "AS IS".  It shall not be deemed to modify Microchip's
standard warranty for its products.  It is your responsibility to ensure
that this information meets your requirements.

MICROCHIP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED STATUTORY OR
OTHERWISE, INCLUDING BUT NOT LIMITED TO MERCHANTABILITY, FITNESS FOR
PURPOSE, NON-INFRINGEMENT, QUALITY, OR CONDITION.  MICROCHIP PROVIDES
THIS INFORMATION CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE TERMS.

To the fullest extent allowed by law, Microchip's liability shall not
exceed the amount of fee, if any, that you have paid directly to
Microchip for development of this information and associated services.




More information about the cfe-dev mailing list