mfentry example

2015-02-15 Thread Niklaus
Hello, I'm trying to do a live update of a function without killing or stopping the program. This is a single threaded application which runs something similar to the below code. Maximum time is spent in the while(1) loop. What i want to do is compile with gcc-4.8 with -pg and -mfentry and then

Fwd: Maybe g++ bug (in stl_algo.h 0x08048beb in std::__unguarded_partition)

2008-10-18 Thread Niklaus
-- Forwarded message -- From: Niklaus <[EMAIL PROTECTED]> Date: Sat, Oct 18, 2008 at 11:52 PM Subject: Maybe g++ bug (in stl_algo.h 0x08048beb in std::__unguarded_partition) To: gcc <[EMAIL PROTECTED]> hi, This crashes on g++ 4.2.3. I think my code is correct. I

Re: new file for testsuite gcc.dj

2008-08-31 Thread Niklaus
On 8/26/08, Janis Johnson <[EMAIL PROTECTED]> wrote: > On Sun, 2008-08-24 at 16:41 +0530, Niklaus wrote: > > i ran with this file under testsuite/gcc.dj and it aborted with -O2. > > It is for the optimization bug that i reported few days back. If we > > don't ha

new file for testsuite gcc.dj

2008-08-24 Thread Niklaus
i ran with this file under testsuite/gcc.dj and it aborted with -O2. It is for the optimization bug that i reported few days back. If we don't have this test can someone add ths. bug_powO2.c Description: Binary data

Re: g++ optimization bug version 4.2.3 and version 4.1.3

2008-08-22 Thread Niklaus
Hi , are you getting the bug with latest trunk on this code. If you can tell me , i'll forward it to debian/ubuntu mainters. On Sat, Aug 23, 2008 at 4:07 AM, Niklaus <[EMAIL PROTECTED]> wrote: > hi, > -O0 gives me correct output > but -O1 or -O2 gives me wrong output. i&

Re: g++ optimization bug version 4.2.3 and version 4.1.3

2008-08-22 Thread Niklaus
22, 2008 at 2:47 PM, Niklaus <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> >>> When i run with the options g++ prog.c -o prog and run the exectuable >>> it gives me the correct output >>> but when i do g++ prog.c -o prog -O2 i get the wrong

g++ optimization bug version 4.2.3 and version 4.1.3

2008-08-22 Thread Niklaus
Hi, When i run with the options g++ prog.c -o prog and run the exectuable it gives me the correct output but when i do g++ prog.c -o prog -O2 i get the wrong output The inputs are below [EMAIL PROTECTED]:/home/junk/prog# g++ bug_gccopt.cpp -O2 [EMAIL PROTECTED]:/home/junk/prog# ./a.out 1 1000

optimize option in macros or somevalue (-O2 or -O3)

2006-11-12 Thread Niklaus
Hi, Is there any way to specify in the code the optimization value like (-O2 or -O3) instead of on the command line. I want #include ... ... return 0 } to be compiled with -O2 or -O3 or some better optimization than standard gcc flags like gcc a.c .I have only 1 file. The problem is i can't

Re: !(fun) with tls

2006-06-22 Thread Niklaus
AIL PROTECTED]> wrote: On Thursday 22 June 2006 12:55 pm, Niklaus wrote: > sorry i didn't understand your question. I build on debian and > everything works fine for me > Please be more elaborate where it didn't > find libc.so.6. I think works, creating extra library simli

i686-unknown-winnt target not defined

2006-06-21 Thread Niklaus
Hi , I have compiled binutils successfully with the target i686-unknown-winnt. But the make for gcc fails. It says target not supported. I think i can workaround it using i686-unknown-mingw32. Few questions 1) Is it a known feature or a bug or something that i am doing wrong ? 2) Do we have som

sparc elf

2006-06-12 Thread Niklaus
Hi, I have been trying to build sparc elf executables from i386. I got gcc,binutils and newlibc and configured them with target=sparc-elf . Now when i got gcc and binutils working , i wrote a small program test.c: int main() { return 3; } i compiled it using sparc-elf-gcc -c test.c. ./sparc-elf-

Re: Toolchain relocation

2006-04-13 Thread Niklaus
On 4/13/06, Dave Murphy <[EMAIL PROTECTED]> wrote: > Daniel Jacobowitz wrote: > > On Thu, Apr 13, 2006 at 03:49:43PM +0100, Dave Murphy wrote: > > > >> Hi, > >> > >> I've been having some odd problems with relocation of 4.x toolchains - > >> i.e. when a toolchain is configured, built and installed

Re: Question about gcc-lib and building on SPARC

2006-04-13 Thread Niklaus
On 4/13/06, Mark Cuss <[EMAIL PROTECTED]> wrote: > Hello - this is definitely a newbie question, so bear with me... > > We've been using gcc under Solaris on SPARC hardware for some time now. The > guy who was here before me set up the previous version (gcc-3.3.3) and now > I'm trying to get gcc-3

mips-elf target

2006-04-05 Thread Niklaus
Hi, Until now i have only build cross toolchains for linux systems. Usually i build crossgcc in 2 parts, one is before glibc is built , the other is after glibc is built. Is there any way where i can skip the step glibc and build the whole gcc compiler. If yes how do i build the whole gcc with