Re: thread build on solaris

2008-10-17 Thread H.J. Lu
On Sat, Oct 18, 2008 at 11:13 AM, Edward Peschko <[EMAIL PROTECTED]> wrote: > All, > > I'm trying to compile a thread with the boost, threading libraries, > and am getting errors like these. > >gcc -o conftest -g -O2 > -I/GAAL/pesced_release/install/fuego/include/boost-1_36 > -L/GAAL/pesced_rel

thread build on solaris

2008-10-17 Thread Edward Peschko
All, I'm trying to compile a thread with the boost, threading libraries, and am getting errors like these. gcc -o conftest -g -O2 -I/GAAL/pesced_release/install/fuego/include/boost-1_36 -L/GAAL/pesced_release/install/fuego/lib /tmp/aa.c -lboost_thread-gcc43-mt /GAAL/pesced_release/install/fu

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Kenneth Zadeck
Andrew Pinski wrote: > On Fri, Oct 17, 2008 at 2:15 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > >> On Fri, Oct 17, 2008 at 16:51, Richard Henderson <[EMAIL PROTECTED]> wrote: >> >> >>> If the version of GCC being used isn't compatible with the version of the IL >>> in the object file, we

Adding NEW Specialized RTL into GCC

2008-10-17 Thread Balaji V. Iyer
Hello Everyone, I am trying to add a specialized RTL into GCC. The main point of this RTL is to add specialized instructions during scheduling (so there is no specific regions such as every basic block or every function beginning/end where I can predict ahead of time before scheduling to insert

gcc-4.4-20081017 is now available

2008-10-17 Thread gccadmin
Snapshot gcc-4.4-20081017 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20081017/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.4 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Andrew Pinski
On Fri, Oct 17, 2008 at 2:15 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > On Fri, Oct 17, 2008 at 16:51, Richard Henderson <[EMAIL PROTECTED]> wrote: > >> If the version of GCC being used isn't compatible with the version of the IL >> in the object file, we can just fall back on the final code. >

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Diego Novillo
On Fri, Oct 17, 2008 at 16:51, Richard Henderson <[EMAIL PROTECTED]> wrote: > If the version of GCC being used isn't compatible with the version of the IL > in the object file, we can just fall back on the final code. Fair enough. But this could be provided via a flag to optionally emit final co

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Richard Henderson
Diego Novillo wrote: We are currently emitting object files that contain both final code and IL. I believe this is wasteful and does not really serve a useful purpose. However, I think we started emitting hybrid object files for some reason. Does anyone remember why? If the version of GCC be

Re: Echte Lokaliserung der Programmbausprache/ Real Localisation of Programming Language

2008-10-17 Thread Andrew Pinski
On Fri, Oct 17, 2008 at 1:27 PM, Nicholas Nethercote <[EMAIL PROTECTED]> wrote: > Early versions of AppleScript -- a "naturalistic" language with lots of > keywords -- supported a french "dialect" and even Japanese. See page 20 of > http://www.cs.utexas.edu/~wcook/Drafts/2006/ashopl.pdf > > AIUI,

Re: Echte Lokaliserung der Programmbausprache/ Real Localisation of Programming Language

2008-10-17 Thread Nicholas Nethercote
On Mon, 6 Oct 2008, Kai Henningsen wrote: You're not the first person to come up with this idea, and you probably won't be the last, but it's a misbegotten idea, and there's In fact, I believe it came up around the time when COBOL was invented. And you'll notice that it didn't get implemente

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Chris Lattner
On Oct 17, 2008, at 1:01 PM, Jeff Law wrote: Reality is there aren't too many non-ELF targets that matter anymore and, IMHO, it's reasonable to demand ELF support for LTO. The only other format that has a reasonable chance of working would be the COFF variants anyway and the only COFF varia

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Diego Novillo
On Fri, Oct 17, 2008 at 16:01, Jeff Law <[EMAIL PROTECTED]> wrote: > I'm not really involved in the LTO stuff at all, but my recommendation would > be to severely de-emphasize any non-ELF targets -- to the point where I'd > say LTO is only supported on ELF targets. Yeah, I agree. We are certainl

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Jeff Law
Diego Novillo wrote: On Fri, Oct 17, 2008 at 15:40, Ollie Wild <[EMAIL PROTECTED]> wrote: On Fri, Oct 17, 2008 at 12:32 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: lto1 (even if -flto is not provided) and eventually we'll need to support archives in the reader. Will we? I thou

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Diego Novillo
On Fri, Oct 17, 2008 at 15:40, Ollie Wild <[EMAIL PROTECTED]> wrote: > On Fri, Oct 17, 2008 at 12:32 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: >> >> lto1 (even if -flto is not provided) and eventually we'll need to >> support archives in the reader. > > Will we? I thought one of the main justif

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Ollie Wild
On Fri, Oct 17, 2008 at 12:32 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > > lto1 (even if -flto is not provided) and eventually we'll need to > support archives in the reader. Will we? I thought one of the main justifications for implementing a plugin architecture in the linker was to avoid ha

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Diego Novillo
On Fri, Oct 17, 2008 at 15:24, Ollie Wild <[EMAIL PROTECTED]> wrote: > At the moment, this won't work if final code is omitted. Collect2 requires > the presence of -flto or -fwhopr before lto1 will be invoked. I'm not sure > what the new Gold plugin does. > > Also, this will be problematic for s

Re: pragma GCC diagnostic

2008-10-17 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: > "Manuel López-Ibáñez" <[EMAIL PROTECTED]> wrote: >> 2008/10/17 Bruno Haible <[EMAIL PROTECTED]>: >>> "#pragma GCC diagnostic" has a few limitations, which make it unusable to >>> resolve warnings like this one: >>> >>> Jim Meyering wrote in [1]: $

Re: pragma GCC diagnostic

2008-10-17 Thread Jim Meyering
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> wrote: > 2008/10/17 Bruno Haible <[EMAIL PROTECTED]>: >> "#pragma GCC diagnostic" has a few limitations, which make it unusable to >> resolve warnings like this one: >> >> Jim Meyering wrote in [1]: >>> $ cat in.c >>> int f (void) __attribute__ ((__

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Diego Novillo
On Fri, Oct 17, 2008 at 15:09, Andrew Pinski <[EMAIL PROTECTED]> wrote: > Yes, so you can just link the files without any LTO at all. That is > you can have the object files act like real object files in the > process of compiling. You can do that with IL-only objects too, as long as you use gcc

[lto][RFC] Keeping the lto branch pegged to 4.4

2008-10-17 Thread Diego Novillo
We are starting to use the lto branch internally for testing and we would like to have some degree of stability for the next few months. Currently, the lto branch is tracking 4.4, but we will soon move to stage 1, which will bring a whole lot of instability that we would like to avoid. Ken, Jan,

Re: [lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Andrew Pinski
On Fri, Oct 17, 2008 at 12:07 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > We are currently emitting object files that contain both final code > and IL. I believe this is wasteful and does not really serve a useful > purpose. However, I think we started emitting hybrid object files for > some r

[lto][RFC] Do not emit hybrid object files

2008-10-17 Thread Diego Novillo
We are currently emitting object files that contain both final code and IL. I believe this is wasteful and does not really serve a useful purpose. However, I think we started emitting hybrid object files for some reason. Does anyone remember why? Object files with just IL are not a problem for

Re: RFC: overloading constraints

2008-10-17 Thread Joern Rennecke
On Fri, Oct 17, 2008 at 01:26:20PM -0400, Michael Meissner wrote: > Why do you need new syntax? The current constraints file already supports > target specific constraints. For example, from the i386: > > (define_register_constraint "x" "TARGET_SSE ? SSE_REGS : NO_REGS" > "Any SSE register.") >

Re: RFC: machine specific alternative cost modifier

2008-10-17 Thread Joern Rennecke
On Fri, Oct 17, 2008 at 10:46:41AM -0700, Ian Lance Taylor wrote: > > I think you could achieve the same result by writing multiple > define_insn patterns and using the instruction predicate. Yes, I could. But that would quadruple my machine description, which is already 169 KB, and it would mak

Re: RFC: machine specific alternative cost modifier

2008-10-17 Thread Ian Lance Taylor
Joern Rennecke <[EMAIL PROTECTED]> writes: > ARCompact has three-address instructions, but it has a number of > shorter two-address instruction codes. > > When optimizing or speed, I think it would generally be best to > choose the three-address alternatives for input reloads, since this > allows

Re: RFC: overloading constraints

2008-10-17 Thread Michael Meissner
On Fri, Oct 17, 2008 at 05:51:03PM +0100, Joern Rennecke wrote: > I want some constriants to be register constraints when compiling with > a particular set of compiler flags, and extra constraints when compiling > with another. > (In the first case, alternatives that use this constraint can be sele

RFC: overloading constraints

2008-10-17 Thread Joern Rennecke
I want some constriants to be register constraints when compiling with a particular set of compiler flags, and extra constraints when compiling with another. (In the first case, alternatives that use this constraint can be selected by reload for reloading non-matching insns, whereas in the second

Sebastian Pop and Daniel Berlin appointed Graphite Reviewers

2008-10-17 Thread David Edelsohn
I am pleased to announce that the GCC Steering Committee has appointed Sebastian Pop and Daniel Berlin as Graphite Reviewers. Please join me in congratulating Sebastian and Danny on their new role. Sebastian and Danny, please update your listings in the MAINTAINERS file. Happy hac

[lto] Merged with mainline as of rev

2008-10-17 Thread Diego Novillo
I just merged mainline rev 141167 into lto. This fixes some regression tests. I also needed to add support for the newly added IMPORTED_DECL nodes. Tested on x86_64 and x86. Diego. * lto-function-in.c (input_imported_decl): New. (input_tree_operand): Handle IMPORTED_DECL.

RFC: machine specific alternative cost modifier

2008-10-17 Thread Joern Rennecke
ARCompact has three-address instructions, but it has a number of shorter two-address instruction codes. When optimizing or speed, I think it would generally be best to choose the three-address alternatives for input reloads, since this allows more reload inheritance. OTOH, when optimizing for siz

Which target has working modulo scheduling?

2008-10-17 Thread Bingfeng Mei
Hello, I tried to enable modulo scheduling for our target VLIW. It fails even for the simplest loop. I would like to have a look at how GCC produces schedule for other targets. I know that modulo scheduling relies on doloop_end pattern to identify a pipelineable loop. There are only a handful of

Re: pragma GCC diagnostic

2008-10-17 Thread Manuel López-Ibáñez
2008/10/17 Bruno Haible <[EMAIL PROTECTED]>: > "#pragma GCC diagnostic" has a few limitations, which make it unusable to > resolve warnings like this one: > > Jim Meyering wrote in [1]: >> $ cat in.c >> int f (void) __attribute__ ((__warn_unused_result__)); >> void g (void) { (void) f (

pragma GCC diagnostic

2008-10-17 Thread Bruno Haible
"#pragma GCC diagnostic" has a few limitations, which make it unusable to resolve warnings like this one: Jim Meyering wrote in [1]: > $ cat in.c > int f (void) __attribute__ ((__warn_unused_result__)); > void g (void) { (void) f (); } > $ gcc -Werror -c in.c > cc1: warnings be

Worth a bug report?

2008-10-17 Thread Pranith Kumar
Hello, I ran into the following using gcc 4.2.3 on ubuntu 8.04. I ran it with -Werror so it died on receiving this warning: cc1: warnings being treated as errors tux3fuse.c: In function 'tux3_lookup': tux3fuse.c:78: warning: initialized field overwritten tux3fuse.c:78: warning: (near initializati

Re: Bootstrap broken for w64

2008-10-17 Thread Andreas Schwab
Kai Tietz <[EMAIL PROTECTED]> writes: > or: in vt_add_function_parameters, at var-tracking.c:3176 This is PR37815. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44

Bootstrap broken for w64

2008-10-17 Thread Kai Tietz
Hi, Till the last days I noticed that the bootstrap of the target x86_64-pc-mingw32 is broken, while compiling libstdc++-v3. Is this a known issue, or could somebody take a look for it? The error message is: In file included from /vol/d/sources/gcc_new/gcc_1017/build3/x86_64-pc-mingw32/libstdc

Re: Messing up the stack pointer

2008-10-17 Thread hyeron bosh
On Fri, Oct 17, 2008 at 11:33 AM, Andrew Haley <[EMAIL PROTECTED]> wrote: > hyeron bosh wrote: >> I have a (probably naive) question about >> messing up the stack pointer. >> >> Here is the code produced by gcc >> for some function "X" (original source code is C/Obj-C) >> >> # function "X" entr

Re: Messing up the stack pointer

2008-10-17 Thread Andrew Haley
hyeron bosh wrote: > I have a (probably naive) question about > messing up the stack pointer. > > Here is the code produced by gcc > for some function "X" (original source code is C/Obj-C) > > # function "X" entry point > 0x82699 <>: push %ebp > 0x8269a <+1>: mov%

Messing up the stack pointer

2008-10-17 Thread hyeron bosh
I have a (probably naive) question about messing up the stack pointer. Here is the code produced by gcc for some function "X" (original source code is C/Obj-C) # function "X" entry point 0x82699 <>: push %ebp 0x8269a <+1>: mov%esp,%ebp 0x8269c <+3>: push %