Re: gcc books, gcc debug (errata)

2018-09-04 Thread Paul Koning
> On Sep 4, 2018, at 12:40 PM, gérard Calliet > wrote: > > (our build version is 4.7.3) > > Hello, > > I'm just a beginner in gcc. (I contributed to the rebuild of the gnat ada > compiler (version 3.4.7) on OpenVMS last year: > https://github.com/AdaLabs/gnat-vms). > > As I do love books

gcc books, gcc debug (errata)

2018-09-04 Thread gérard Calliet
(our build version is 4.7.3) Hello, I'm just a beginner in gcc. (I contributed to the rebuild of the gnat ada compiler (version 3.4.7) on OpenVMS last year: https://github.com/AdaLabs/gnat-vms). As I do love books and encyclopedic learning attitude, I searched for a good book about gcc. I

gcc books, gcc debug

2018-09-04 Thread gérard Calliet
Hello, I'm just a beginner in gcc. (I contributed to the rebuild of the gnat ada compiler (version 3.4.7) on OpenVMS last year: https://github.com/AdaLabs/gnat-vms). As I do love books and encyclopedic learning attitude, I searched for a good book about gcc. I found this reference: Source

GCC debug info question (PR 54061, mips coprocessor registers)

2012-08-31 Thread Steve Ellcey
I have a question about GCC debug info. The tests gcc.c-torture/compile/mipscop-[1234].c fail when compiled with -g on MIPS (they are mips specific tests). This has been reported in bugzilla as PR 54061. The problem is: register unsigned int cp0count asm ("$c0r1"); This is a c

Re: GCC debug

2009-09-28 Thread Dave Korn
daniel tian wrote: > And this is the debug problem. And hope somebody can give me a clue. > command: > gdb --args $(./xgcc -### > -B/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc/./gcc/ > -B/usr/local/cross/rice-elf/rice-elf/bin/ > -B/usr/local/cross/rice-elf/rice-elf/lib/ -isystem > /usr/

Re: Fwd: GCC debug

2009-09-28 Thread Andrew Haley
daniel tian wrote: > 2009/9/28 Basile STARYNKEVITCH : >> daniel tian wrote: >>> Thanks. >>> But how to debug cc1. Because now I port the gcc to my RISC target. >>> But when build the libgcc2.c. Some error occurred. So i have to debug >>> it. >>> Any advice about how to debug? >> >> Start gdb from

Fwd: GCC debug

2009-09-28 Thread daniel tian
2009/9/28 Basile STARYNKEVITCH : > daniel tian wrote: >> >> Thanks. >> But how to debug cc1. Because now I port the gcc to my RISC target. >> But when build the libgcc2.c.  Some error occurred. So i have to debug >> it. >> Any advice about how to debug? > > > Start gdb from the build directory (mor

Re: GCC debug

2009-09-28 Thread daniel tian
Thanks. But how to debug cc1. Because now I port the gcc to my RISC target. But when build the libgcc2.c. Some error occurred. So i have to debug it. Any advice about how to debug? gdb --args $(./xgcc -### -B/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc/./gcc/ -B/usr/local/cross/rice-elf

GCC debug

2009-09-28 Thread daniel tian
I follow the instructions from this website:http://gcc.gnu.org/wiki/DebuggingGCC. but things is not going to be correct. bacause when cc1 build libgcc2.c, some error occurred. I have debug cc1. But If I have to build libgcc2.c, some complex parameter have to pass. I don't know what's xgcc is, bu