Re: C++ - compilation error for all implicit conversion

2018-03-05 Thread Satya Prakash Prasad
Thanks a lot - I just picked up all compiler flags that we make use in our project. Thanks a lot for the information as provided. Regards, Prakash On Mon, Mar 5, 2018 at 2:00 PM, Liu Hao wrote: > 在 2018年03月05日 16:17, Satya Prakash Prasad 写道: > > I still does not throws

Re: C++ - compilation error for all implicit conversion

2018-03-05 Thread Satya Prakash Prasad
n-conversion cast.cpp On Mon, Mar 5, 2018 at 1:38 PM, Liu Hao wrote: > 在 2018年03月05日 15:42, Satya Prakash Prasad 写道: > > Is there a compiler flag that logs warning / error in case of any > implicit > > conversions - like int32_t to uint32_t. > > > > #include

C++ - compilation error for all implicit conversion

2018-03-04 Thread Satya Prakash Prasad
Is there a compiler flag that logs warning / error in case of any implicit conversions - like int32_t to uint32_t. #include #include using ::std::int32_t; using ::std::uint32_t; int main(int argc, char *argv[]) { int32_t x = 9; uint32_t i = x; uint32_t i1 = socketread(...); // return

Re: GCC Making a new PASS

2012-06-12 Thread Satya Prakash Prasad
> > Just curious to know. Is there any real world application/product where this > will help? Can you give more context to this requirement. > > Regards, > Kannan > > -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Satya &

Re: GCC Making a new PASS

2012-06-11 Thread Satya Prakash Prasad
887 = obj->funcs; D.3888 = D.3887->close; D.3886 = obj->next_input; D.3888 (obj, D.3886); } So please let me know how can I achieve the objective and which pass should I make use of? Regards, Prakash On Tue, Jun 12, 2012 at 11:06 AM, Ian Lance Taylor wrote: > Satya P

Re: GCC Making a new PASS

2012-06-11 Thread Satya Prakash Prasad
have just a fprintf("Test"); in my pass it works fine but when I have the below code it throws this error - I am not sure how they are linked to each other? Regards, Prakash On Mon, Jun 11, 2012 at 4:35 PM, Basile Starynkevitch wrote: > On Mon, Jun 11, 2012 at 04:19:16PM +0530, Satya P

Re: GCC Making a new PASS

2012-06-11 Thread Satya Prakash Prasad
Basile Starynkevitch wrote: > On Mon, Jun 11, 2012 at 03:41:16PM +0530, Satya Prakash Prasad wrote: >> I am trying to write a new GCC pass in gcc-4.1.2. This is my first >> attempt and I am trying to print lines of code for a function gcc is >> compiling. So I added the belo

GCC Making a new PASS

2012-06-11 Thread Satya Prakash Prasad
I am trying to write a new GCC pass in gcc-4.1.2. This is my first attempt and I am trying to print lines of code for a function gcc is compiling. So I added the below code. Note if I remove code in execute_gimple_manipulation method the issue does not occur : gcc/gcc-4.1.2 1223> cat gcc/gimple-ma

Re: GCC GCOV

2012-02-10 Thread Satya Prakash Prasad
Fri, Feb 10, 2012 at 7:58 AM, David Malcolm wrote: > On Thu, 2012-02-09 at 15:52 -0800, Satya Prakash Prasad wrote: >> Hi All, >> >> I am a new joinee to this group and a C/C++ developer for around 2 >> yrs. What interest me most is gcc / gcov combination output.

GCC GCOV

2012-02-09 Thread Satya Prakash Prasad
Hi All, I am a new joinee to this group and a C/C++ developer for around 2 yrs. What interest me most is gcc / gcov combination output. It list the code execution details. Is there a possibility that gcc build binaries can print file name:line number of the code it is executing at run time. Some