Re: X32 psABI status update

2011-03-20 Thread H.J. Lu
On Sun, Mar 20, 2011 at 10:53 PM, Mike Frysinger wrote: > On Monday, March 21, 2011 01:35:35 H.J. Lu wrote: >> On Sun, Mar 20, 2011 at 10:08 PM, Mike Frysinger wrote: >> > On Thursday, March 17, 2011 01:21:16 H.J. Lu wrote: >> >> On Wed, Mar 16, 2011 at 7:57 PM, Mike Frysinger wrote: >> >> > in lo

Re: X32 psABI status update

2011-03-20 Thread Mike Frysinger
On Monday, March 21, 2011 01:35:35 H.J. Lu wrote: > On Sun, Mar 20, 2011 at 10:08 PM, Mike Frysinger wrote: > > On Thursday, March 17, 2011 01:21:16 H.J. Lu wrote: > >> On Wed, Mar 16, 2011 at 7:57 PM, Mike Frysinger wrote: > >> > in looking at the gcc files, it doesnt seem like there's any defines

Re: X32 psABI status update

2011-03-20 Thread H.J. Lu
On Sun, Mar 20, 2011 at 10:08 PM, Mike Frysinger wrote: > On Thursday, March 17, 2011 01:21:16 H.J. Lu wrote: >> On Wed, Mar 16, 2011 at 7:57 PM, Mike Frysinger wrote: >> > in looking at the gcc files, it doesnt seem like there's any defines >> > setup to declare x32 directly.  instead, you'd hav

Re: X32 psABI status update

2011-03-20 Thread Mike Frysinger
On Thursday, March 17, 2011 01:21:16 H.J. Lu wrote: > On Wed, Mar 16, 2011 at 7:57 PM, Mike Frysinger wrote: > > in looking at the gcc files, it doesnt seem like there's any defines > > setup to declare x32 directly. instead, you'd have to do something > > like: #ifdef __x86_64__ > > # if __SIZEO

Re: A problem of our Gcc mirror

2011-03-20 Thread Harry Wei
On Mon, Mar 21, 2011 at 01:10:23AM +0100, Gerald Pfeifer wrote: > On Sun, 20 Mar 2011, harryxiyou wrote: > > What about others? If i can? I want to restore our China's. > > Could you give some advice? > > Once there is a functional mirror, or several, that's been up > andworking for a week

Re: git mirror corrupted?

2011-03-20 Thread H.J. Lu
On Sat, Mar 19, 2011 at 8:47 AM, Frank Ch. Eigler wrote: > > dnovillo wrote: > >> In trying to clone the git mirror, I'm getting: >> $ git clone git://gcc.gnu.org/git/gcc.git >> Cloning into gcc... >> remote: Counting objects: 1191223, done. >> remote: aborting due to possible repository corruptio

Re: A problem of our Gcc mirror

2011-03-20 Thread Gerald Pfeifer
On Sun, 20 Mar 2011, harryxiyou wrote: > What about others? If i can? I want to restore our China's. > Could you give some advice? Once there is a functional mirror, or several, that's been up andworking for a week (better more) just provide a patch to http://gcc.gnu.org/mirrors.html and

Re: segmentation fault with fclose

2011-03-20 Thread Jonathan Wakely
On 20 March 2011 22:47, bd satish wrote: > Hi, > > I'm trying to close a file using fclose, but the following program seg-faults: > > > #include > > int main(void) > { >    FILE* fp = fopen("unfounded.txt", "r"); > >    if(fp == NULL) >        fclose(fp); > >    return 0; > } > > > The file I'm tr

segmentation fault with fclose

2011-03-20 Thread bd satish
Hi, I'm trying to close a file using fclose, but the following program seg-faults: #include int main(void) { FILE* fp = fopen("unfounded.txt", "r"); if(fp == NULL) fclose(fp); return 0; } The file I'm trying to open doesn't exist in the directory, so fp is indeed NULL.

gcc-4.3-20110320 is now available

2011-03-20 Thread gccadmin
Snapshot gcc-4.3-20110320 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.3-20110320/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.3 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Using secondary reload to reload CONST_INT?

2011-03-20 Thread Andrew Pinski
On Sun, Mar 20, 2011 at 9:59 AM, Georg-Johann Lay wrote: > The drawback is that this allocates 4 GPRs (AVR is 8-bit machine). However, > one "d"-reg would be sufficient to copy a const into class "l". What about doing a split of consts before reload? The MIPS and rs6000 targets split up their co

Using secondary reload to reload CONST_INT?

2011-03-20 Thread Georg-Johann Lay
The AVR controller basically has two kinds of hard registers: * LD_REGS (constraint "d") that can move immediates * NO_LD_REGS (constraint "l") that cannot move immediates movsi insn of avr backend does not supply an "l,i" constraint alternative, so that reload takes care of that and allocates

Re: g++ 4.6 and suggested flags

2011-03-20 Thread Jonathan Wakely
On 20 March 2011 13:41, denis campredon wrote: > downloaded gcc 4.6, and tried it. > > And I found something a little strange when I compile a file : > > g++ displayboard.cpp -lncurses -c > displayboard.cpp: In constructor ‘DisplayBoard::DisplayBoard(int, int)’: > displayboard.cpp:47:22: error: inv

g++ 4.6 and suggested flags

2011-03-20 Thread denis campredon
downloaded gcc 4.6, and tried it. And I found something a little strange when I compile a file : g++ displayboard.cpp -lncurses -c displayboard.cpp: In constructor ‘DisplayBoard::DisplayBoard(int, int)’: displayboard.cpp:47:22: error: invalid conversion from ‘void (* (*)())(int)’ to ‘sighandler_t