regarding https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89924

2019-05-15 Thread kamlesh kumar
Hi devs, I am looking into subjected issue. consider below testcase. $test.cpp class A { public: virtual int value() { return 1; } }; class B final : public A { public: int value(){ return 2; } }; int test(A* b) { return b->value() + 11; } void foo_test(B*b) { test(b); } Here gcc is u

Re: RS6000 emitting sign extention for unsigned type

2019-01-15 Thread kamlesh kumar
ed to zero by default. So in all cases 'punsignedp' remain zero even if it is for unsigned type. which cause the sign extension to happen even for unsigned type. is there any way to set 'punsignedp' appropriately here. Thanks On Tue, Jan 15, 2019 at 12:11 AM kamlesh kumar

RS6000 emitting sign extention for unsigned type

2019-01-14 Thread kamlesh kumar
Hi devs, consider below testcase: $cat test.c void foo(){ unsigned int x=-1; double d=x; } $./cc1 test.c -msoft-float -m64 $cat test.s .foo: .LFB0: mflr 0 std 0,16(1) stdu 1,-128(1) .LCFI0: li 9,-1 stw 9,112(1) lwa 9,112(1) mr 3,9 bl

Re: Wrong file name entry in .debug_info section

2018-08-02 Thread kamlesh kumar
his info is not being used. If we make compiler use this info than problem will be solved i think. ~Kamlesh Kumar On Thu, Aug 2, 2018 at 6:18 PM Rainer Orth wrote: > Hi Kamlesh, > > > gcc is putting wrong enrty inside .debug_info section into attribute > > DW_AT_name if -xassem

Wrong file name entry in .debug_info section

2018-08-02 Thread kamlesh kumar
Hi devs, gcc is putting wrong enrty inside .debug_info section into attribute DW_AT_name if -xassembler-with-cpp option is used with debugging enabled. Considering following example hello.s when below command is issued: gc