Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Paolo Bonzini
On 08/12/2011 06:25 PM, H.J. Lu wrote: > > I prefer to wait for testing results to commit it, the breakage is minor. It bootstraps successfully with "make -j12" on a 24 core machine. Thanks. Committed. Paolo

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread H.J. Lu
On Fri, Aug 12, 2011 at 8:57 AM, Paolo Bonzini wrote: > On 08/12/2011 05:50 PM, H.J. Lu wrote: >> >> >  Thanks, you are correct. >> >> It should work. >> >> Thanks. > > I prefer to wait for testing results to commit it, the breakage is minor. It bootstraps successfully with "make -j12" on a 24 co

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Pedro Alves
On Friday 12 August 2011 16:40:33, Paolo Bonzini wrote: > install-unwind_h: > - rm -f $(gcc_objdir)/include/unwind.h > - cp unwind.h $(gcc_objdir)/include/unwind.h > - chmod a+r $(gcc_objdir)/include/unwind.h > + dest=$(gcc_objdir)/include/tmp-unwind.h; \ > + cp u

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Paolo Bonzini
On 08/12/2011 05:50 PM, H.J. Lu wrote: > Thanks, you are correct. It should work. Thanks. I prefer to wait for testing results to commit it, the breakage is minor. Paolo

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread H.J. Lu
On Fri, Aug 12, 2011 at 8:40 AM, Paolo Bonzini wrote: >>> Can't this sequence happen? >>> >>> proc1:       cp unwind.h $(gcc_objdir)/include/tmp-unwind.h >>> proc2:       cp unwind.h $(gcc_objdir)/include/tmp-unwind.h >>> proc1:       sh $(srcdir)/../move-if-change \ >>>               $(gcc_objdir

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Paolo Bonzini
Can't this sequence happen? proc1: cp unwind.h $(gcc_objdir)/include/tmp-unwind.h proc2: cp unwind.h $(gcc_objdir)/include/tmp-unwind.h proc1: sh $(srcdir)/../move-if-change \ $(gcc_objdir)/include/tmp-unwind.h \ $(gcc_objdir)/include/unwind.h proc2

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread H.J. Lu
On Fri, Aug 12, 2011 at 5:38 AM, Pedro Alves wrote: > On Friday 12 August 2011 13:17:21, Paolo Bonzini wrote: >>   2011-08-12  Paolo Bonzini   >> >>         * Makefile.in (install-unwind_h): Create >> $(gcc_objdir)/include/unwind.h >>         atomically. >> >> Index: Makefile.in >> ==

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Pedro Alves
On Friday 12 August 2011 13:17:21, Paolo Bonzini wrote: > 2011-08-12 Paolo Bonzini > > * Makefile.in (install-unwind_h): Create > $(gcc_objdir)/include/unwind.h > atomically. > > Index: Makefile.in > === > --- M

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Paolo Bonzini
On 08/12/2011 02:13 PM, H.J. Lu wrote: We may have a race condition here. I opened: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50047 Does the attached patch work? Can you provide a patch instead of the whole Makefile.in? Sorry, that was not intended. Paolo 2011-08-12 Paolo Bonzini

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread H.J. Lu
On Fri, Aug 12, 2011 at 12:04 AM, Paolo Bonzini wrote: > On 08/11/2011 08:24 PM, H.J. Lu wrote: >> >> On Thu, Aug 11, 2011 at 11:19 AM, H.J. Lu  wrote: >>> >>> On Thu, Aug 11, 2011 at 8:23 AM, Rainer Orth >>>  wrote: Paolo Bonzini  writes: > On 08/10/2011 06:05 PM, Rainer Orth

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-12 Thread Paolo Bonzini
On 08/11/2011 08:24 PM, H.J. Lu wrote: On Thu, Aug 11, 2011 at 11:19 AM, H.J. Lu wrote: On Thu, Aug 11, 2011 at 8:23 AM, Rainer Orth wrote: Paolo Bonzini writes: On 08/10/2011 06:05 PM, Rainer Orth wrote: True: it is called once per multilib. Just to doublecheck, are we sure that u

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Paolo Bonzini
On Thu, Aug 11, 2011 at 20:19, H.J. Lu wrote: > On Thu, Aug 11, 2011 at 8:23 AM, Rainer Orth > wrote: >> Paolo Bonzini writes: >> >>> On 08/10/2011 06:05 PM, Rainer Orth wrote: >> >>  True: it is called once per multilib. > > > >  Just to doublecheck, are we sure that unwind.h is alw

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread H.J. Lu
On Thu, Aug 11, 2011 at 11:19 AM, H.J. Lu wrote: > On Thu, Aug 11, 2011 at 8:23 AM, Rainer Orth > wrote: >> Paolo Bonzini writes: >> >>> On 08/10/2011 06:05 PM, Rainer Orth wrote: >> >>  True: it is called once per multilib. > > > >  Just to doublecheck, are we sure that unwind.h is

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread H.J. Lu
On Thu, Aug 11, 2011 at 8:23 AM, Rainer Orth wrote: > Paolo Bonzini writes: > >> On 08/10/2011 06:05 PM, Rainer Orth wrote: > >>  True: it is called once per multilib. > >  Just to doublecheck, are we sure that unwind.h is always the same? >>> Yep: it's unwind-generic.h for almost a

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Rainer Orth
Paolo Bonzini writes: > Writing that down in a wiki page (even as unformatted text) would be > useful. While I'm not too fond of WiKis, I've added some text to http://gcc.gnu.org/wiki/Top-Level_Libgcc_Migration It's ugly right now, but better than nothing. Rainer -- ---

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Paolo Bonzini
On 08/11/2011 05:26 PM, Rainer Orth wrote: > Actually I think the installation of all the installed target headers > should move to libgcc's Makefiles (and the headers themselves should move > under the libgcc/ directory). Agreed, added to my ever-growing todo list for the libgcc move. Thi

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Rainer Orth
"Joseph S. Myers" writes: > Actually I think the installation of all the installed target headers > should move to libgcc's Makefiles (and the headers themselves should move > under the libgcc/ directory). Agreed, added to my ever-growing todo list for the libgcc move. This would be * gcc/gi

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Rainer Orth
Paolo Bonzini writes: > On 08/10/2011 06:05 PM, Rainer Orth wrote: >> True: it is called once per multilib. >>> > >>> > Just to doublecheck, are we sure that unwind.h is always the same? >> Yep: it's unwind-generic.h for almost all targets, just a few arm >> targets use config/arm/unwind-a

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Joseph S. Myers
On Thu, 11 Aug 2011, Paolo Bonzini wrote: > On 08/11/2011 04:25 PM, Joseph S. Myers wrote: > > > The actual problem are not the runtime libraries, which already know to > > > search $builddir/.../libgcc for unwind.h and related files. The > > > copyback is only for the benefit of the testsuite

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Rainer Orth
"Joseph S. Myers" writes: > On Thu, 11 Aug 2011, Rainer Orth wrote: > >> The actual problem are not the runtime libraries, which already know to >> search $builddir/.../libgcc for unwind.h and related files. The >> copyback is only for the benefit of the testsuite (gcc.target, g++.dg, >> gnat.dg

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Paolo Bonzini
On 08/11/2011 04:25 PM, Joseph S. Myers wrote: > The actual problem are not the runtime libraries, which already know to > search $builddir/.../libgcc for unwind.h and related files. The > copyback is only for the benefit of the testsuite (gcc.target, g++.dg, > gnat.dg, and gcc.dg) where I w

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Joseph S. Myers
On Thu, 11 Aug 2011, Rainer Orth wrote: > The actual problem are not the runtime libraries, which already know to > search $builddir/.../libgcc for unwind.h and related files. The > copyback is only for the benefit of the testsuite (gcc.target, g++.dg, > gnat.dg, and gcc.dg) where I was too lazy

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Rainer Orth
Paolo Bonzini writes: > On 08/10/2011 06:50 PM, Pedro Alves wrote: >> On Wednesday 10 August 2011 17:05:08, Rainer Orth wrote: >>> > Paolo Bonzini writes: >>> > > > >> True: it is called once per multilib. > > > > Just to doublecheck, are we sure that unwind.h is always the s

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-11 Thread Paolo Bonzini
On 08/10/2011 06:50 PM, Pedro Alves wrote: On Wednesday 10 August 2011 17:05:08, Rainer Orth wrote: > Paolo Bonzini writes: > > >> True: it is called once per multilib. > > > > Just to doublecheck, are we sure that unwind.h is always the same? > > Yep: it's unwind-generic.h for almost

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Pedro Alves
On Wednesday 10 August 2011 17:05:08, Rainer Orth wrote: > Paolo Bonzini writes: > > >> True: it is called once per multilib. > > > > Just to doublecheck, are we sure that unwind.h is always the same? > > Yep: it's unwind-generic.h for almost all targets, just a few arm > targets use config/arm/

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Paolo Bonzini
On 08/10/2011 06:05 PM, Rainer Orth wrote: >> True: it is called once per multilib. > > Just to doublecheck, are we sure that unwind.h is always the same? Yep: it's unwind-generic.h for almost all targets, just a few arm targets use config/arm/unwind-arm.h for all multilibs. Patch doing rm

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Rainer Orth
Paolo Bonzini writes: >> True: it is called once per multilib. > > Just to doublecheck, are we sure that unwind.h is always the same? Yep: it's unwind-generic.h for almost all targets, just a few arm targets use config/arm/unwind-arm.h for all multilibs. Rainer --

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Paolo Bonzini
On 08/10/2011 03:56 PM, Rainer Orth wrote: "Joseph S. Myers" writes: This is strange: they copy explicitly goes into $(gcc_objdir): from libgcc/Makefile.in: install-unwind_h: cp unwind.h $(gcc_objdir)/include/unwind.h chmod a+r $(gcc_objdir)/include/unwind.h For an in-tree

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Joseph S. Myers
On Wed, 10 Aug 2011, Rainer Orth wrote: > Could you try the obvious patch? It's probably quicker than me > recreating the setup. Actually I think it will be quicker for you to do this test. -- Joseph S. Myers jos...@codesourcery.com

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Rainer Orth
"Joseph S. Myers" writes: >> This is strange: they copy explicitly goes into $(gcc_objdir): from >> libgcc/Makefile.in: >> >> install-unwind_h: >> cp unwind.h $(gcc_objdir)/include/unwind.h >> chmod a+r $(gcc_objdir)/include/unwind.h >> >> For an in-tree build, the source direct

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Joseph S. Myers
On Wed, 10 Aug 2011, Rainer Orth wrote: > "Joseph S. Myers" writes: > > > This appears to have brought back PR 26478, build failure with readonly > > source directory: > > > > cp unwind.h ../../.././gcc/include/unwind.h > > cp: cannot create regular file `../../.././gcc/include/unwind.h': > >

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Rainer Orth
"Joseph S. Myers" writes: > This appears to have brought back PR 26478, build failure with readonly > source directory: > > cp unwind.h ../../.././gcc/include/unwind.h > cp: cannot create regular file `../../.././gcc/include/unwind.h': Permission > denied > make[4]: *** [install-unwind_h] Error

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-10 Thread Joseph S. Myers
This appears to have brought back PR 26478, build failure with readonly source directory: cp unwind.h ../../.././gcc/include/unwind.h cp: cannot create regular file `../../.././gcc/include/unwind.h': Permission denied make[4]: *** [install-unwind_h] Error 1 -- Joseph S. Myers jos...@codesource

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-09 Thread Rainer Orth
Andreas, > The definition of LIB2ADDEH from ia64/t-glibc is supposed to prevail. > I've verified that the resulting libgcc_s.so aggrees with the one > produced by the 4.6 branch. Checked in as obvious. in that case, ia64/t-eh-ia64 should be removed since it's overridden completely and only serve

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-09 Thread Andreas Schwab
The definition of LIB2ADDEH from ia64/t-glibc is supposed to prevail. I've verified that the resulting libgcc_s.so aggrees with the one produced by the 4.6 branch. Checked in as obvious. Andreas. 2011-08-09 Andreas Schwab * config.host (ia64*-*-linux*): Move ia64/t-glibc after

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-09 Thread Andreas Schwab
Rainer Orth writes: > Andreas Schwab writes: > >> It's already fixed, 'twas the missing ldflags. > > I see, so I wasn't the only victim :-) Unfortunately it didn't really fix it, the undefined symbol is still present in libgcc_s.so. I'll experiment with the config file juggling. Andreas. --

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-09 Thread Rainer Orth
Richard Sandiford writes: > Rainer Orth writes: >> * config.host (unwind_header): New variable. >> (*-*-freebsd*): Set tmake_file to t-eh-dw2-dip. >> (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu, >> *-*-gnu*): Likewise, also for *-*-kopensolaris*-gnu. >>

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-09 Thread Rainer Orth
Andreas Schwab writes: > It's already fixed, 'twas the missing ldflags. I see, so I wasn't the only victim :-) Thanks. Rainer -- - Rainer Orth, Center for Biotechnology, Bielefeld University

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-09 Thread Rainer Orth
Paolo Bonzini writes: > On 08/06/2011 05:07 PM, Mikael Morin wrote: >> On Saturday 06 August 2011 16:31:48 Paolo Bonzini wrote: >>> Can you try this instead? >> It works. Thanks > > Committed, thanks. Thanks for fixing this. Rainer -- --

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-08 Thread Andreas Schwab
It's already fixed, 'twas the missing ldflags. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-08 Thread Rainer Orth
Andreas Schwab writes: > I'm seeing this bootstrap failure on ia64 (configured with > --with-system-libunwind): > > /usr/local/gcc/gcc-20110806/Build/./prev-gcc/g++ > -B/usr/local/gcc/gcc-20110806/Build/./prev-gcc/ -B/usr/ia64-suse-linux/bin/ > -nostdinc++ > -B/usr/local/gcc/gcc-20110806/Build

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-08 Thread Steve Ellcey
> I'm seeing this bootstrap failure on ia64 (configured with > --with-system-libunwind): > /usr/local/gcc/gcc-20110806/Build/./prev-gcc/libgcc_s.so: undefined referen= > ce to `__libunwind__Unwind_Find_FDE' > collect2: error: ld returned 1 exit status > make[3]: *** [gengtype] Error 1 I get this

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-06 Thread Richard Sandiford
Thanks again for doing this. Rainer Orth writes: > * config.host (unwind_header): New variable. > (*-*-freebsd*): Set tmake_file to t-eh-dw2-dip. > (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu, > *-*-gnu*): Likewise, also for *-*-kopensolaris*-gnu. >

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-06 Thread Paolo Bonzini
On 08/06/2011 05:07 PM, Mikael Morin wrote: On Saturday 06 August 2011 16:31:48 Paolo Bonzini wrote: Can you try this instead? It works. Thanks Committed, thanks. Paolo

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-06 Thread Mikael Morin
On Saturday 06 August 2011 16:31:48 Paolo Bonzini wrote: > Can you try this instead? It works. Thanks Mikael

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-06 Thread Paolo Bonzini
On 08/06/2011 12:43 PM, Mikael Morin wrote: On Friday 05 August 2011 21:48:34 Paolo Bonzini wrote: On Fri, Aug 5, 2011 at 20:18, Mikael Morin wrote: I suppose it is this patch that breaks bootstrap The culprit is indeed r177447. Adding a -I flag? I suppose that makes sense even if crtstuf

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-06 Thread Mikael Morin
On Friday 05 August 2011 21:48:34 Paolo Bonzini wrote: > On Fri, Aug 5, 2011 at 20:18, Mikael Morin wrote: > > I suppose it is this patch that breaks bootstrap The culprit is indeed r177447. > > Adding a -I flag? I suppose that makes sense even if crtstuff is > moved soon to toplevel libgcc. Ho

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-06 Thread Andreas Schwab
I'm seeing this bootstrap failure on ia64 (configured with --with-system-libunwind): /usr/local/gcc/gcc-20110806/Build/./prev-gcc/g++ -B/usr/local/gcc/gcc-20110806/Build/./prev-gcc/ -B/usr/ia64-suse-linux/bin/ -nostdinc++ -B/usr/local/gcc/gcc-20110806/Build/prev-ia64-suse-linux/libstdc++-v3/src

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-05 Thread Paolo Bonzini
On Fri, Aug 5, 2011 at 20:18, Mikael Morin wrote: > I suppose it is this patch that breaks bootstrap on 86_64-unknown-freebsd8.2: > /home/mik/gcc4x/src/gcc/crtstuff.c:64:28: fatal error: unwind-dw2-fde.h: No > such file or directory > > Fixed by the the following pat^Whack > Index: crtstuff.c > ==

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-05 Thread Mikael Morin
On Wednesday 03 August 2011 15:32:45 Rainer Orth wrote: > This is the revised/updated version of the patch originally posted at > > [build] Move unwinder to toplevel libgcc > http://gcc.gnu.org/ml/gcc-patches/2011-06/msg01452.html > > and reposted as CFT at > > http://gcc.gnu

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-05 Thread Paolo Bonzini
On 08/05/2011 01:46 PM, Rainer Orth wrote: >> How should we proceed with this patch, especially given the quite >> moderate comments from most affected target maintainers? > > ARM is the only target we should care a bit about. Any chance you can try > cross-compiling it (with a combined tre

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-05 Thread Rainer Orth
Paolo Bonzini writes: >> How should we proceed with this patch, especially given the quite >> moderate comments from most affected target maintainers? > > ARM is the only target we should care a bit about. Any chance you can try > cross-compiling it (with a combined tree it should not be hard)?

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-05 Thread Paolo Bonzini
On 08/03/2011 03:32 PM, Rainer Orth wrote: It should incorporate all review comments and a few errors I've noticed during final review have been corrected. I've received approval for the Darwin bits, Steve successfully tested on HP-UX/IA64 and Linux/IA64 at least bootstrapped. VMS/IA64 approval

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-03 Thread Benjamin Kosnik
> +++ b/libstdc++-v3/acinclude.m4 > @@ -685,9 +685,9 @@ AC_DEFUN([GLIBCXX_EXPORT_INCLUDES], [ >fi > ># Stuff in the actual top level. Currently only used by libsupc++ > to > - # get unwind* headers from the gcc dir. > - #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc > -I$(toplevel_srcdi

Re: [build] Move unwinder to toplevel libgcc (v2)

2011-08-03 Thread Nick Clifton
Hi Rainer, How should we proceed with this patch, especially given the quite moderate comments from most affected target maintainers? I have no objections to the patch from an ARM or FRV point of view. Cheers Nick

[build] Move unwinder to toplevel libgcc (v2)

2011-08-03 Thread Rainer Orth
This is the revised/updated version of the patch originally posted at [build] Move unwinder to toplevel libgcc http://gcc.gnu.org/ml/gcc-patches/2011-06/msg01452.html and reposted as CFT at http://gcc.gnu.org/ml/gcc-patches/2011-07/msg00201.html It should incorporate all