libsupc++.a(eh_globals.o): In function `__gnu_internal::get_global()': undefined reference to `___tls_get_addr'

2006-06-12 Thread yang xiaoxin
Hi, I've tried to build openoffice using gcc-4.1.0, but failed with the following message: Building project store = /usr/src/rpm/BUILD/OOB680_m5/store/source - /usr/src/rpm/BUILD/OOB680_m5/store/util -- Making: ../unxlngi6.pro/lib/libstore.so.3

Re: GCC 4.2 emitting static template constants as global symbols?

2006-06-12 Thread Ian Lance Taylor
Benjamin Redelings <[EMAIL PROTECTED]> writes: > substitution.o:(.data+0x0): multiple definition of > `_ZN5boost7numeric5ublas21scalar_divides_assignIT_T0_E8computedE' I can't make sense of that as a mangled name. It has template parameter references but no template definition. That suggests th

GCC 4.2 emitting static template constants as global symbols?

2006-06-12 Thread Benjamin Redelings
Hi, I have some software that uses the BOOST matrix library UBLAS (1.33.1). With GCC 4.1.1 this software compile fine (Debian Linux system - GNU ld). However, with GCC 4.2 I get lots of errors, but I am not sure if this is a bug or not: substitution.o:(.data+0x0): multiple definition of `

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Ian Lance Taylor
[EMAIL PROTECTED] writes: > void longcpy(long* _dst, long* _src, unsigned _numwords) > { > asm volatile ( > "cld \n\t" > "rep \n\t" > "movsl \n\t" > // Outputs > : > // Inputs > : "S" (_src), "D" (_dst), "c" (_numwords)

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
Ok, I think I have tracked this down to having broken the aliasing rules, and for the sake of completeness, here was the problem: Recall that the (big picture) code works fine at -O2, but fails at -O3. The problem seemed to stem from this inline assembly function: void longcpy(long* _dst, long* _

Re: sparc elf

2006-06-12 Thread Jim Wilson
Niklaus wrote: when i executed a.out on sparc machine it segfaulted and dumped core. On what kind of sparc machine? It sounds like you tried to run the code on a sparc-solaris or sparc-linux machine, which won't work. sparc-elf code can only be run on bare hardware. Try building a cross g

Re: Errors while building bootstrap GCC for "mipsisa32-elf" target

2006-06-12 Thread Jim Wilson
Monika Sapra wrote: I am not able to understand, why the checkout source of GCC is so large in size? I am using the following command to checkout source: See the info in the wiki. It talks about ways to reduce disk space. http://gcc.gnu.org/wiki/SvnHelp -- Jim Wilson, GNU Tools Support, http

Re: CIL back-end

2006-06-12 Thread Daniel Berlin
Ori Bernstein wrote: > On Mon, 12 Jun 2006 10:36:49 -0700, Joe Buck <[EMAIL PROTECTED]> said: > >> Free software is all about collaboration with third parties, as I'm >> sure that the SoC people are well aware. > > True. I'd still suggest asking and making sure, since I know for a fact that > stu

Re: CIL back-end

2006-06-12 Thread Ori Bernstein
On Mon, 12 Jun 2006 10:36:49 -0700, Joe Buck <[EMAIL PROTECTED]> said: > Free software is all about collaboration with third parties, as I'm > sure that the SoC people are well aware. True. I'd still suggest asking and making sure, since I know for a fact that students aren't allowed to work toge

Re: CIL back-end

2006-06-12 Thread Joe Buck
On Mon, Jun 12, 2006 at 01:36:35PM -0500, Ori Bernstein wrote: > On Mon, 12 Jun 2006 13:26:41 -0400, Robert Dewar <[EMAIL PROTECTED]> said: > > > How could SoC rules in any way restrict what third > > parties can do? > > It would restrict whether he could collaborate with a 3rd party. Free soft

Re: CIL back-end

2006-06-12 Thread Ori Bernstein
On Mon, 12 Jun 2006 13:26:41 -0400, Robert Dewar <[EMAIL PROTECTED]> said: > How could SoC rules in any way restrict what third > parties can do? It would restrict whether he could collaborate with a 3rd party. -- When does summertime come to Minnesota, you ask? Well, last year, I think it wa

Re: CIL back-end

2006-06-12 Thread Robert Dewar
Ori Bernstein wrote: Perhaps you could collaborate with him, or (as I believe the Summer of Code rules might require) build off his work after it gets submitted. I'd suggest you contact the Mono project about it. How could SoC rules in any way restrict what third parties can do?

Re: CIL back-end

2006-06-12 Thread Ori Bernstein
On Mon, 12 Jun 2006 09:50:13 +0200, Roberto COSTA <[EMAIL PROTECTED]> said: > Hello, > > I'm working for an R&D organization of STMicroelectronics. Within our > team we have decided to write a gcc back-end that produces CIL binaries > (compliant with ECMA specification, see > http://www.ecma-

Re: CIL back-end

2006-06-12 Thread Ori Bernstein
On Mon, 12 Jun 2006 09:50:13 +0200, Roberto COSTA <[EMAIL PROTECTED]> said: > Hello, > > I'm working for an R&D organization of STMicroelectronics. Within our > team we have decided to write a gcc back-end that produces CIL binaries > (compliant with ECMA specification, see > http://www.ecma-

Re: sparc elf

2006-06-12 Thread Martin Guy
2006/6/12, Niklaus <[EMAIL PROTECTED]>: int main() { return 3; } i compiled it using sparc-elf-gcc -c test.c. ./sparc-elf-ld --entry=main test.o -o a.out when i executed a.out on sparc machine it segfaulted and dumped core. I guess 'cos you set entrypoint=main instead of __start or whatever it

Re: Generator programs can only be built with optimization enabled?

2006-06-12 Thread Mark Mitchell
Paolo Bonzini wrote: > This was caused by: > 2006-01-22 Zack Weinberg <[EMAIL PROTECTED]> > > * genautomata.c: Include vec.h, not varray.h. > > > The problem that Mark reported happens because (since always) the CFLAGS > of the gcc directory are just "-g", not "-O2 -g". Optimized bui

Re: CIL back-end

2006-06-12 Thread Joe Buck
On Mon, Jun 12, 2006 at 12:00:36PM -0400, Daniel Berlin wrote: > Roberto COSTA wrote: > > It looks like you don't assume such an approval as granted... may I ask > > you why? > > Because they have a history of not granting such things, believing that > it serves to hinder, not further, the goal o

Re: algorithm to parse a propositional logic formula

2006-06-12 Thread Joe Buck
On Mon, Jun 12, 2006 at 03:20:20PM +0200, Riccardo wrote: > Does anyboby know where I ccan find an algorithm to parse a propositional > logic formula and obtain the associated binary tree? thanks Please don't ask questions like that on this list.

Re: CIL back-end

2006-06-12 Thread Daniel Berlin
Roberto COSTA wrote: > Diego Novillo wrote: >> Sebastian Pop wrote on 06/12/06 12:40: >> >> >>> This page has no discussion about a CIL backend. >>> >> Note that I never said 'CIL'. I specifically said 'bytecode >> representation'. The work being done for LTO will have some points in >> common wi

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Mike Stump
On Jun 12, 2006, at 5:45 AM, [EMAIL PROTECTED] wrote: Well, my point above was that -strict-aliasing is included in -O2 and my code works fine at -O2. Only -O3 causes problems, so I didn't expect -fno-strict-aliasing to make any difference. Code in violation of the aliasing rules can appear

Re: CIL back-end

2006-06-12 Thread Roberto COSTA
Diego Novillo wrote: Sebastian Pop wrote on 06/12/06 12:40: This page has no discussion about a CIL backend. Note that I never said 'CIL'. I specifically said 'bytecode representation'. The work being done for LTO will have some points in common with an effort to build a CIL backend. Th

Re: CIL back-end

2006-06-12 Thread Andrew Pinski
On Jun 12, 2006, at 9:56 AM, Sebastian Pop wrote: Could one of the SC people bring this question one level up? I don't know if this is relevant at this point but GCC did have at one point did have a Java byte code outputter but it was removed on the request of RMS. -- Pinski

Re: CIL back-end

2006-06-12 Thread Sebastian Pop
Diego Novillo wrote: > > The document in which Mark has announced the LTO briefly mentions > > that CIL was not retained for dumping the IR, without giving an > > explicit reason, so I think that we need a clear position from the > > FSF whether such a backend is accepted to be part of GCC. > >

Re: CIL back-end

2006-06-12 Thread Diego Novillo
Sebastian Pop wrote on 06/12/06 12:40: > This page has no discussion about a CIL backend. > Note that I never said 'CIL'. I specifically said 'bytecode representation'. The work being done for LTO will have some points in common with an effort to build a CIL backend. > The document in which Ma

Re: CIL back-end

2006-06-12 Thread Sebastian Pop
Diego Novillo wrote: > Roberto COSTA wrote on 06/12/06 03:50: > > > Every so often CIL looks to poke in the works of the mailing list, but I > > haven't been able to track the current status of the discussion on the > > topic. > > > We have started work on a bytecode representation that will initi

Re: Generator programs can only be built with optimization enabled?

2006-06-12 Thread David Edelsohn
> Daniel Jacobowitz writes: Daniel> On Mon, Jun 12, 2006 at 10:22:17AM -0400, David Edelsohn wrote: >> Typing "make" in the gcc subdirectory does not do what I expect. Daniel> Then could you clarify what happens, and what you expect, please? The behavior prior to the top-level bootst

Re: Generator programs can only be built with optimization enabled?

2006-06-12 Thread Daniel Jacobowitz
On Mon, Jun 12, 2006 at 10:22:17AM -0400, David Edelsohn wrote: > Typing "make" in the gcc subdirectory does not do what I expect. Then could you clarify what happens, and what you expect, please? -- Daniel Jacobowitz CodeSourcery

Re: Generator programs can only be built with optimization enabled?

2006-06-12 Thread David Edelsohn
> Paolo Bonzini writes: Paolo> So, let's please not confuse issues. I work in the GCC directory daily. Paolo> I type "make" there and it just works. You can even type "make Paolo> quickstrap" if you want: Paolo> I think this was your suggestion, and it was implemented. Typing "ma

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
[EMAIL PROTECTED] writes: > > Well, my point above was that -strict-aliasing is included in -O2 and > my code works fine at -O2. Only -O3 causes problems, so I didn't expect > -fno-strict-aliasing to make any difference. That doesn't follow at all. -O3 exposes much more information to the co

algorithm to parse a propositional logic formula

2006-06-12 Thread Riccardo
Does anyboby know where I ccan find an algorithm to parse a propositional logic formula and obtain the associated binary tree? thanks

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: RFC: gimple tuples data structures design

2006-06-12 Thread Diego Novillo
Daniel Berlin wrote on 06/09/06 19:32: >> /* This structure is for generic trees. */ >> struct tree_common GTY(()) >> { >> struct tree_base base; >> tree chain; >> tree type; >> union tree_ann_d *ann; >> }; > Why is there a chain in tree_common? > To avoid wholesale conversion. Initially

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
On Mon, Jun 12, 2006 at 01:40:18PM +0100, Andrew Haley wrote: > [EMAIL PROTECTED] writes: > > On Mon, Jun 12, 2006 at 12:30:50PM +, [EMAIL PROTECTED] wrote: > > > On Mon, Jun 12, 2006 at 02:21:21PM +0200, Richard Guenther wrote: > > > > On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
[EMAIL PROTECTED] writes: > On Mon, Jun 12, 2006 at 12:30:50PM +, [EMAIL PROTECTED] wrote: > > On Mon, Jun 12, 2006 at 02:21:21PM +0200, Richard Guenther wrote: > > > On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > >On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
[EMAIL PROTECTED] writes: > On Mon, Jun 12, 2006 at 02:21:21PM +0200, Richard Guenther wrote: > > On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > > >> > > >> I'm starting to be a little suspicious about host2little()

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
On Mon, Jun 12, 2006 at 12:30:50PM +, [EMAIL PROTECTED] wrote: > On Mon, Jun 12, 2006 at 02:21:21PM +0200, Richard Guenther wrote: > > On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > > >> > > >> I'm starting to be a l

Re: RFC: gimple tuples data structures design

2006-06-12 Thread Diego Novillo
Steven Bosscher wrote on 06/09/06 19:12: > For gimple temporaries, are you planning on something different from > the current minimal decl (tree_decl_with_vis in tree.h; needs > re-indenting btw...)? > I was hoping to get away with just type, but I'm not sure if that's possible yet. >> /* All tr

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
On Mon, Jun 12, 2006 at 02:21:21PM +0200, Richard Guenther wrote: > On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > >> > >> I'm starting to be a little suspicious about host2little(). I wonder > >> if that's well-defined.

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
Richard Guenther writes: > On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > > > > > > I'm starting to be a little suspicious about host2little(). I wonder > > > if that's well-defined. > > > > > > I'm just guessing

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
[EMAIL PROTECTED] writes: > On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > > > > I'm starting to be a little suspicious about host2little(). I wonder > > if that's well-defined. > > > > I'm just guessing here becasue I can't see the code. Is it possible > > templat

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Richard Guenther
On 6/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > > I'm starting to be a little suspicious about host2little(). I wonder > if that's well-defined. > > I'm just guessing here becasue I can't see the code. Is it possible

Re: CIL back-end

2006-06-12 Thread Diego Novillo
Roberto COSTA wrote on 06/12/06 03:50: > Every so often CIL looks to poke in the works of the mailing list, but I > haven't been able to track the current status of the discussion on the > topic. > We have started work on a bytecode representation that will initially be used for link-time optimiza

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
On Mon, Jun 12, 2006 at 01:01:47PM +0100, Andrew Haley wrote: > > I'm starting to be a little suspicious about host2little(). I wonder > if that's well-defined. > > I'm just guessing here becasue I can't see the code. Is it possible template T swap_endian(T x) { char* a = reint

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
[EMAIL PROTECTED] writes: > On Mon, Jun 12, 2006 at 12:32:36PM +0100, Andrew Haley wrote: > > [EMAIL PROTECTED] writes: > > > I want a reduced test case for this problem for bugzilla, but don't > > > really know the exact cause. I _think_ code is being improperly > > > optimized away, but I

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
On Mon, Jun 12, 2006 at 12:32:36PM +0100, Andrew Haley wrote: > [EMAIL PROTECTED] writes: > > I want a reduced test case for this problem for bugzilla, but don't > > really know the exact cause. I _think_ code is being improperly > > optimized away, but I don't know. This function is part of a >

Re: help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread Andrew Haley
[EMAIL PROTECTED] writes: > I want a reduced test case for this problem for bugzilla, but don't > really know the exact cause. I _think_ code is being improperly > optimized away, but I don't know. This function is part of a > BigInteger library, and works perfectly upto and including -O2, but

help interpreting gcc 4.1.1 optimisation bug

2006-06-12 Thread andrew
I want a reduced test case for this problem for bugzilla, but don't really know the exact cause. I _think_ code is being improperly optimized away, but I don't know. This function is part of a BigInteger library, and works perfectly upto and including -O2, but produces bogus results at -O3, unless

Re: Generator programs can only be built with optimization enabled?

2006-06-12 Thread Paolo Bonzini
David Edelsohn wrote: Mark Mitchell writes: Mark> That seems unfortunate, but so be it. Yes it is very unfortunate and not very convenient for the way that most developers want to use the build infrastructure. There no longer is an equivalent to "make quickstrap". To rebuild only GCC

Re: a problem when building gcc3.2.1

2006-06-12 Thread Kai Ruottu
Eric Fisher wrote: /src/gcc-3.2.1/configure --target=mipsel-elf \ --prefix=/gnutools --enable-languages=c,c++ \ --with-gnu-as --with-gnu-ld --with-newlib \ --without-headers --disable-shared --disable-threads Build and install GCC make Wrong command, use 'make all-gcc ; make install-gcc', th

Re: Where is the egg?

2006-06-12 Thread Thomas Neumann
> These are pngcrushed versions with linear dimensions between 50% and 80% of > the 200-pixel-high original. how about using a svg image as a master instead of a png? It could be scaled without loss. I attached a svg produced from the original png. Thomas gcc.svg.bz2 Description: Binary data

CIL back-end

2006-06-12 Thread Roberto COSTA
Hello, I'm working for an R&D organization of STMicroelectronics. Within our team we have decided to write a gcc back-end that produces CIL binaries (compliant with ECMA specification, see http://www.ecma-international.org/publications/standards/Ecma-335.htm). Our main motivation is the abili

a problem when building gcc3.2.1

2006-06-12 Thread Eric Fisher
hi, I configure GCC as follow: PATH=/gnutools/bin:$PATH ; export PATH mkdir -p /tmp/build/gcc cd /tmp/build/gcc /src/gcc-3.2.1/configure --target=mipsel-elf \ --prefix=/gnutools --enable-languages=c,c++ \ --with-gnu-as --with-gnu-ld --with-newlib \ --without-headers --disable-shared --disable-t