Re: DW_OP_implict_value usage and motivation

2020-07-07 Thread Jakub Jelinek via Gcc
On Tue, Jul 07, 2020 at 09:26:58AM +, Tomar, Sourabh Singh wrote: > Thanks for clarifying this. I went through literature and other stuff > available, it describes operation and semantics. Unfortunately I wasn't > able to get to the actual DWARF Issue/proposal when it was proposed. > > One s

RE: DW_OP_implict_value usage and motivation

2020-07-07 Thread Tomar, Sourabh Singh
cc.gnu.org Subject: Re: DW_OP_implict_value usage and motivation [CAUTION: External Email] On Sat, Jul 04, 2020 at 04:23:58PM +, Tomar, Sourabh Singh wrote: > Consider the following test case: > [..] > int main () { > __int128 newVar = 8; > newVar = ~n

Re: DW_OP_implict_value usage and motivation

2020-07-04 Thread Jakub Jelinek via Gcc
On Sat, Jul 04, 2020 at 04:23:58PM +, Tomar, Sourabh Singh wrote: > Consider the following test case: > [..] > int main () { > __int128 newVar = 8; > newVar = ~newVar; > return 0; > } DW_OP_implicit_value as well as DW_OP_stack_value is described in DWARF4/5, just read

DW_OP_implict_value usage and motivation

2020-07-04 Thread Tomar, Sourabh Singh
Hello Everyone, Consider the following test case: [..] int main () { __int128 newVar = 8; newVar = ~newVar; return 0; } [..] Compiled as: $gcc foo.c -g -O1 produces DWARF for "newVar" as: [..] 0x004f: DW_TAG_variable DW_AT_name("newVar")