Re: Patch regarding addition of .symtab while generating object file from libiberty [WIP]

2023-06-26 Thread Rishi Raj via Gcc
hen invoke the linker. I am thinking of fixing it. -- Regards Rishi > > Honza > > -- > > Regards > > Rishi > > > > > > > > I am also adding Ian to CC as he is maintainer of the simple-object and > > > he may have some ideas. > > > > &g

Re: Patch regarding addition of .symtab while generating object file from libiberty [WIP]

2023-06-26 Thread Jan Hubicka via Gcc
gt; Rishi > > > > > I am also adding Ian to CC as he is maintainer of the simple-object and > > he may have some ideas. > > > > Honza > > > > > > /* Release all resources associated with SIMPLE_OBJECT, including any > > > simple_objec

Re: Patch regarding addition of .symtab while generating object file from libiberty [WIP]

2023-06-26 Thread Rishi Raj via Gcc
port first, I am adding > .symtab > > in elf object files only. > > > > --- > > gcc/lto-object.cc | 4 +- > > include/simple-object.h | 10 +++ > > libiberty/simple-object-common.h | 18 + > > libiberty/simple-object-elf.c

Re: Patch regarding addition of .symtab while generating object file from libiberty [WIP]

2023-06-24 Thread Jan Hubicka via Gcc
ion in simple-object.c to add symbols. I am > calling this function in lto-object.cc to add __gnu_lto_v1. > Right now, as we are only working on ELF support first, I am adding .symtab > in elf object files only. > > --- > gcc/lto-object.cc| 4 +- > include/sim

Patch regarding addition of .symtab while generating object file from libiberty [WIP]

2023-06-19 Thread Rishi Raj via Gcc
| 4 +- include/simple-object.h | 10 +++ libiberty/simple-object-common.h | 18 + libiberty/simple-object-elf.c| 130 +++++-- libiberty/simple-object.c| 32 5 files changed, 187 insertions(+), 7 deletions(-) diff --git a/gcc/l

Re: libiberty D tuple demangling

2022-07-25 Thread Jan Beulich via Gcc
On 25.07.2022 17:45, ibuc...@gdcproject.org wrote: >> On 25/07/2022 14:13 CEST Jan Beulich wrote: >> >> >> On 25.07.2022 14:05, ibuc...@gdcproject.org wrote: >>>> On 25/07/2022 08:45 CEST Jan Beulich wrote: >>>> while commit 3f30a274913b ("

Re: libiberty D tuple demangling

2022-07-25 Thread ibuclaw--- via Gcc
> On 25/07/2022 14:13 CEST Jan Beulich wrote: > > > On 25.07.2022 14:05, ibuc...@gdcproject.org wrote: > >> On 25/07/2022 08:45 CEST Jan Beulich wrote: > >> while commit 3f30a274913b ("libiberty: Update D symbol demangling > >> for latest ABI s

Re: libiberty D tuple demangling

2022-07-25 Thread Jan Beulich via Gcc
On 25.07.2022 14:05, ibuc...@gdcproject.org wrote: >> On 25/07/2022 08:45 CEST Jan Beulich wrote: >> while commit 3f30a274913b ("libiberty: Update D symbol demangling >> for latest ABI spec") mentions in its description that tuple encoding >> has chan

Re: libiberty D tuple demangling

2022-07-25 Thread ibuclaw--- via Gcc
> On 25/07/2022 08:45 CEST Jan Beulich wrote: > > > Hello, > > while commit 3f30a274913b ("libiberty: Update D symbol demangling > for latest ABI spec") mentions in its description that tuple encoding > has changed, there's no real adjustment to dlang_p

libiberty D tuple demangling

2022-07-24 Thread Jan Beulich via Gcc
Hello, while commit 3f30a274913b ("libiberty: Update D symbol demangling for latest ABI spec") mentions in its description that tuple encoding has changed, there's no real adjustment to dlang_parse_tuple() there, nor are there any new (or replaced) test cases for that. Was this si

Re: Warning in gcc/libiberty/dyn-string.c during build

2019-03-25 Thread nick
) >>> configure: WARNING: cannot check for properly working vsnprintf when >>> cross compiling, will assume it's ok >>> ../../gcc/libiberty/dyn-string.c: In function ‘dyn_string_insert_cstr’: >>>   ../../gcc/libiberty/dyn-string.c:280:3: warning: ‘strncpy’ outpu

Re: Warning in gcc/libiberty/dyn-string.c during build

2019-03-25 Thread Jeff Law
rintf when >> cross compiling, will assume it's ok >> ../../gcc/libiberty/dyn-string.c: In function ‘dyn_string_insert_cstr’: >>   ../../gcc/libiberty/dyn-string.c:280:3: warning: ‘strncpy’ output >> truncated before terminating nul copying as many bytes from a string &g

Re: Warning in gcc/libiberty/dyn-string.c during build

2019-03-25 Thread Martin Sebor
On 3/23/19 9:49 PM, nick wrote: Greetings all, I just got this in my build output: ar: `u' modifier ignored since `D' is the default (see `U') configure: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok ../../gcc/libiberty/dyn-s

Warning in gcc/libiberty/dyn-string.c during build

2019-03-23 Thread nick
vsnprintf when cross compiling, will assume it's ok ../../gcc/libiberty/dyn-string.c: In function ‘dyn_string_insert_cstr’:

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread David Edelsohn
On Fri, Jul 29, 2016 at 1:44 PM, Joseph Myers wrote: > On Fri, 29 Jul 2016, Manuel López-Ibáñez wrote: > >> On 29 July 2016 at 16:25, Jeff Law wrote: >> >> Well, if libiberty is going to be replaced en masse by gnulib, then >> >> there's no

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Joseph Myers
On Fri, 29 Jul 2016, Manuel López-Ibáñez wrote: > On 29 July 2016 at 16:25, Jeff Law wrote: > >> Well, if libiberty is going to be replaced en masse by gnulib, then > >> there's no sense in me cleaning up libiberty's regex. > > libiberty cannot be replac

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Manuel López-Ibáñez
On 29 July 2016 at 16:25, Jeff Law wrote: >> Well, if libiberty is going to be replaced en masse by gnulib, then >> there's no sense in me cleaning up libiberty's regex. libiberty cannot be replaced completely, because there are bits that do not even exist in gnulib. And g

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Jeff Law
ok to resync with glibc, though that could prove painful after 15 years of divergence. The current glibc implementation is completely different; the libiberty version was replaced in glibc many years ago. Obsolete libiberty by gnulib for all its users and you get a portable version of the current

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Jeff Law
prove painful after 15 years of divergence. The current glibc implementation is completely different; the libiberty version was replaced in glibc many years ago. Obsolete libiberty by gnulib for all its users and you get a portable version of the current glibc regex that way BTW, this is what Ayu

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Joseph Myers
On Fri, 29 Jul 2016, Aldy Hernandez wrote: > BTW, does this libiberty replacement project also fix binutils and gdb, or > will these other libiberty users require independent patches for their > respective projects? GDB is already making extensive use of gnulib (I don't know to w

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Aldy Hernandez
prove painful after 15 years of divergence. The current glibc implementation is completely different; the libiberty version was replaced in glibc many years ago. Obsolete libiberty by gnulib for all its users and you get a portable version of the current glibc regex that way BTW, this is what Ayu

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-29 Thread Aldy Hernandez
rrent glibc implementation is completely different; the libiberty version was replaced in glibc many years ago. Obsolete libiberty by gnulib for all its users and you get a portable version of the current glibc regex that way BTW, this is what Ayush is trying to do: https://gcc.gnu.org/m

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-25 Thread Manuel López-Ibáñez
; the libiberty version was replaced in glibc many years ago. Obsolete libiberty by gnulib for all its users and you get a portable version of the current glibc regex that way BTW, this is what Ayush is trying to do: https://gcc.gnu.org/ml/gcc-patches/2016-07/msg01302.html https://gcc.gnu.org

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-25 Thread Joseph Myers
On Mon, 25 Jul 2016, Jeff Law wrote: > I'll pre-approve removing those bits. Alternately, you could look to resync > with glibc, though that could prove painful after 15 years of divergence. The current glibc implementation is completely different; the libiberty version was replac

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-25 Thread Jeff Law
ely, you could look to resync with glibc, though that could prove painful after 15 years of divergence. Another silly question, who are libiberty's consumers? GCC and binutils/gdb? Or should I be looking at additional packages for answers? Packages which have libiberty included are supp

Re: [libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-23 Thread Aldy Hernandez
On 07/23/2016 06:33 AM, Aldy Hernandez wrote: If the REGEX_MALLOC mode in regex.c is unused, can I rip it out? I'd like to replace it all with alloca with a malloc fallback. And yes, I realize regex.c already does this most of the time: if (size1 > MAX_ALLOCA_SIZE) {

[libiberty] does anyone use regex.c with REGEX_MALLOC?

2016-07-23 Thread Aldy Hernandez
t look like autoconf magic being set elsewhere. The only reference I see to REGEX_MALLOC is in libiberty/regex.c: /* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we use `alloca' instead of `malloc'. This is because using malloc in re_search* or re_match* cou

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-23 Thread Joseph Myers
On Mon, 11 Jul 2016, Ian Lance Taylor wrote: > > AFAICT, the only "utilities" found in libiberty not appropriate for > > gnulib is the demangler. That would be more appropriate for a > > libdemangler library shared among all gnutools. > > Does gnulib have a fu

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-17 Thread Manuel López-Ibáñez
aling either. Considering that the long >>> term desired result ends up with a libiberty that is no longer a >>> portability library, but instead only an utilities library, then to >>> get to that stage, the other programs in the binutils-gdb repo which >>> rely

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-11 Thread Manuel López-Ibáñez
e: they have a separate repo for Clang (the frontend, ~ gcc/c, cp, > ...), for compiler-rt (~ libgcc), for libc++ (~ libstdc++). > > All utilities (~ libiberty) live in the LLVM repo (include/llvm/ADT, > include/llvm/Support, lib/Support). Other projects, like LLDB, are checked out > i

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-11 Thread Ian Lance Taylor
On Sun, Jul 10, 2016 at 10:15 AM, Manuel López-Ibáñez wrote: > On 23 June 2016 at 18:02, Pedro Alves wrote: >> But on the other hand, the idea of maintaining multiple gnulib >> copies isn't that appealing either. Considering that the long >> term desired result ends u

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-11 Thread Mikhail Maltsev
r-rt (~ libgcc), for libc++ (~ libstdc++). All utilities (~ libiberty) live in the LLVM repo (include/llvm/ADT, include/llvm/Support, lib/Support). Other projects, like LLDB, are checked out into a subdirectory, and are always built from the combined tree. -- Regards, Mikhail Maltsev

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-07-10 Thread Manuel López-Ibáñez
On 23 June 2016 at 18:02, Pedro Alves wrote: > But on the other hand, the idea of maintaining multiple gnulib > copies isn't that appealing either. Considering that the long > term desired result ends up with a libiberty that is no longer a > portability library, but instead

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-06-23 Thread Pedro Alves
On 06/23/2016 03:54 PM, Szabolcs Nagy wrote: > if both gcc and binutils used a toplevel gnulib directory > then shared tree build would have the same problem as > libiberty has now: gcc and binutils can depend on different > versions of libiberty and then the build can fail. > a

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-06-23 Thread Szabolcs Nagy
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=tree;f=gdb/gnulib;h=cdf326774716ae427dc4fb47c9a410fcdf715563;hb=HEAD > > ... but put it in the top level instead. if both gcc and binutils used a toplevel gnulib directory then shared tree build would have the same problem as

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-06-23 Thread Pedro Alves
On 06/22/2016 07:17 PM, ayush goel wrote: > > Hi, I am working on importing gnulib library inside the gcc tree. > Should the library be imported in the top level directory along with > other libraries (like libiberty, libatomic, liboffloadmic etc), or > should it be imported insi

Re: Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-06-22 Thread Joseph Myers
On Wed, 22 Jun 2016, ayush goel wrote: > I am working on importing gnulib library inside the gcc tree. Should the > library be imported in the top level directory along with other > libraries (like libiberty, libatomic, liboffloadmic etc), or should it > be imported inside gcc/ lik

Should we import gnulib under gcc/ or at the top-level like libiberty?

2016-06-22 Thread ayush goel
Hi, I am working on importing gnulib library inside the gcc tree. Should the library be imported in the top level directory along with other libraries (like libiberty, libatomic, liboffloadmic etc), or should it be imported inside gcc/ like it is done in the binutils-gdb tree. There they have

Re: --disable-install-libiberty and libiberty.a

2013-03-29 Thread Matt Burgess
On Fri, 2013-03-29 at 06:13 -0700, Ian Lance Taylor wrote: > On Fri, Mar 29, 2013 at 1:35 AM, Matt Burgess > wrote: > > > > 1) We currently assume that binutils is 'upstream' for libiberty > > development, and should therefore 'own' the libiberty.a fi

Re: --disable-install-libiberty and libiberty.a

2013-03-29 Thread Ian Lance Taylor
On Fri, Mar 29, 2013 at 1:35 AM, Matt Burgess wrote: > > 1) We currently assume that binutils is 'upstream' for libiberty > development, and should therefore 'own' the libiberty.a file. Is that > assumption correct? No. The master sources for libiberty are

--disable-install-libiberty and libiberty.a

2013-03-29 Thread Matt Burgess
estions: 1) We currently assume that binutils is 'upstream' for libiberty development, and should therefore 'own' the libiberty.a file. Is that assumption correct? 2) The --disable-install-libiberty configure switch for GCC does *not* suppress the installation of libiberty.a (s

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Benjamin Kosnik
> > Note that one of the objectives of this email is to try and get > > maintainers from thinking there is going to be "a perfect time" to > > switch. Development history tells us there will always be more > > changes. We've been sitting on ABI-breaking changes since 2003. > > e.g. http://gcc.gnu

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Jonathan Wakely
On 13 January 2012 17:45, Benjamin Kosnik wrote: > > Note that one of the objectives of this email is to try and get > maintainers from thinking there is going to be "a perfect time" to > switch. Development history tells us there will always be more changes. > We've been sitting on ABI-breaking ch

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Benjamin Kosnik
> My concern is specifically about options for changing the default > language version, not options for changing the libstdc++ ABI. More > generally, about configure options affecting the semantics of code > passed to GCC, as opposed to non-semantic configure options such as > choosing the proces

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Benjamin Kosnik
> > As it turns out, the mangling changes don't really impact the > > explicit instantiations compiled in to libstdc++.so. So, it seems > > possible to say > > Right, so people can use -fabi-version=0 and still use the installed > libstdc++. > > > I think a compelling case could be made to ship

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Joseph S. Myers
On Fri, 13 Jan 2012, Benjamin Kosnik wrote: > A canonical method for doing the ABI switch seems entirely appropriate. My concern is specifically about options for changing the default language version, not options for changing the libstdc++ ABI. More generally, about configure options affectin

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Benjamin Kosnik
> I like the idea, but not very strongly. I can live with having to say > -std=c++11 (which I do via shell functions or scripts) Well, the actual C++11 compile/runtime environment is going to be more than just -std=c++11. It's looking something like -std=c++11 -fabi-version=7 + versioned names

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-13 Thread Benjamin Kosnik
> I think that's a bad idea; having too many ways to configure things > will cause undue confusion. Seems like the train has already left the station WRT gcc configure options. If you feel this is a real issue, then it could be solved the same way that thread support was solved, by adding a "Th

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Jonathan Wakely
On 12 January 2012 21:03, Jason Merrill wrote: > On 01/12/2012 03:17 PM, Jonathan Wakely wrote: >> >> And if we are going to do that, shouldn't it be ASAP? Otherwise we'll >> not be able to change anything significant in .so.7 once it's >> available in 4.7 and we'll have to create a .so.8 for more

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Jason Merrill
On 01/12/2012 03:17 PM, Jonathan Wakely wrote: And if we are going to do that, shouldn't it be ASAP? Otherwise we'll not be able to change anything significant in .so.7 once it's available in 4.7 and we'll have to create a .so.8 for more changes.. Wait, what? Are you planning to move to .so.7

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Jason Merrill
On 01/12/2012 02:16 PM, Benjamin Kosnik wrote: As it turns out, the mangling changes don't really impact the explicit instantiations compiled in to libstdc++.so. So, it seems possible to say Right, so people can use -fabi-version=0 and still use the installed libstdc++. I think a compelling

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Jonathan Wakely
On 12 January 2012 19:16, Benjamin Kosnik wrote: > > I think a compelling case could be made to ship 4.7 with a > configure-time flag that sets the default C++ dialect to C++11. > > So, I would propose > > --with-std = dialect > > or > > --with-std-version=c dialect default, c++ dialect default > >

Re: C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Joseph S. Myers
On Thu, 12 Jan 2012, Benjamin Kosnik wrote: > I think a compelling case could be made to ship 4.7 with a > configure-time flag that sets the default C++ dialect to C++11. I think that's a bad idea; having too many ways to configure things will cause undue confusion. But if someone really wants

C++ ABI RFC [was Re: C++/libiberty PATCH for many mangling fixes (6057, 48051, 50855, 51322, etc)]

2012-01-12 Thread Benjamin Kosnik
> bkoz pointed out that I forgot to update invoke.texi about > -fabi-version=6. Applying to trunk I've been thinking about this. As it turns out, the mangling changes don't really impact the explicit instantiations compiled in to libstdc++.so. So, it seems possible to say 1. compile libstdc++

Re: Target-libiberty being built -- gcc-4.6.1 & gcc-4.6.2

2011-10-30 Thread Hans-Peter Nilsson
On Sun, 30 Oct 2011, Michael Eager wrote: > On 10/29/2011 11:55 PM, Michael Eager wrote: > > On 10/29/2011 08:44 PM, Ian Lance Taylor wrote: > > > Michael Eager writes: > > > > > > > I'm seeing a build failure when building a bootstrap gcc > > >

Re: Target-libiberty being built -- gcc-4.6.1 & gcc-4.6.2

2011-10-30 Thread Michael Eager
On 10/29/2011 11:55 PM, Michael Eager wrote: On 10/29/2011 08:44 PM, Ian Lance Taylor wrote: Michael Eager writes: I'm seeing a build failure when building a bootstrap gcc because it is attempting to build target-libiberty. This is happening for --target=powerpc-linux with the gcc-

Re: Target-libiberty being built -- gcc-4.6.1 & gcc-4.6.2

2011-10-29 Thread Michael Eager
On 10/29/2011 08:44 PM, Ian Lance Taylor wrote: Michael Eager writes: I'm seeing a build failure when building a bootstrap gcc because it is attempting to build target-libiberty. This is happening for --target=powerpc-linux with the gcc-4.6.1 release and --target=microblaze-xilinx-elf

Re: Target-libiberty being built -- gcc-4.6.1 & gcc-4.6.2

2011-10-29 Thread Ian Lance Taylor
Michael Eager writes: > I'm seeing a build failure when building a bootstrap gcc > because it is attempting to build target-libiberty. This > is happening for --target=powerpc-linux with the gcc-4.6.1 > release and --target=microblaze-xilinx-elf with gcc-4.6.2. > > Target

Target-libiberty being built -- gcc-4.6.1 & gcc-4.6.2

2011-10-29 Thread Michael Eager
Hi -- I'm seeing a build failure when building a bootstrap gcc because it is attempting to build target-libiberty. This is happening for --target=powerpc-linux with the gcc-4.6.1 release and --target=microblaze-xilinx-elf with gcc-4.6.2. Target-libiberty is not being built when building

Re: libiberty/.gitignore isn't in gcc tree

2011-01-17 Thread Mike Frysinger
On Wednesday, January 05, 2011 11:44:58 Mike Frysinger wrote: > On Tuesday, January 04, 2011 13:03:59 H.J. Lu wrote: > > libiberty/.gitignore was added to src. But it isn't in gcc tree. > > i dont have access to the gcc tree, so i can only post patches. if someone > wer

Re: libiberty/.gitignore isn't in gcc tree

2011-01-05 Thread Mike Frysinger
On Tuesday, January 04, 2011 13:03:59 H.J. Lu wrote: > libiberty/.gitignore was added to src. But it isn't in gcc tree. i dont have access to the gcc tree, so i can only post patches. if someone were to grant me access, i obviously wouldnt have a problem making the commit. otherwise

libiberty/.gitignore isn't in gcc tree

2011-01-04 Thread H.J. Lu
Hi, libiberty/.gitignore was added to src. But it isn't in gcc tree. -- H.J.

RE: gcc 4.5.0 libiberty .o vs. .obj confusion

2010-05-05 Thread Jay K
oops, also need like: --- /src/orig/gcc-4.5.0/libiberty/configure    2010-01-04 15:46:56.0 -0800 +++ /src/gcc-4.5.0/libiberty/configure    2010-05-05 05:40:52.0 -0700 @@ -6533,10 +6533,10 @@    # Figure out which version of pexecute to use.  case "${host}" in -

RE: gcc 4.5.0 libiberty .o vs. .obj confusion

2010-05-05 Thread Jay K
> CC: gcc@ > From: iant@ > > Jay: >> I'm guessing that every ".o" in libiberty/Makefile.in should be changed to >> $(OBJEXT). > > Yes. > > Ian Thanks. Specifically ".o" goes to "@objext@". There's no way I'

RE: gcc4.5.0/libiberty/pex-common.h missing pid_t on vms

2010-05-05 Thread Jay K
> Use #ifdef HAVE_UNISTD_H instead. There are many examples in > libiberty. > > Ian Thanks Ian, that worked. --- /src/orig/gcc-4.5.0/libiberty/pex-common.h    2009-04-13 03:45:58.0 -0700 +++ /src/gcc-4.5.0/libiberty/pex-common.h    2010-05-04 06:43:24.0 -0700 @@

Re: gcc 4.5.0 libiberty .o vs. .obj confusion

2010-05-03 Thread Ian Lance Taylor
Jay K writes: > I'm guessing that every ".o" in libiberty/Makefile.in should be changed to > $(OBJEXT). Yes. Ian

Re: gcc4.5.0/libiberty/pex-common.h missing pid_t on vms

2010-05-03 Thread Ian Lance Taylor
Jay K writes: > proposed/tested fix: > #ifdef __vms > #include > #endif > > or similar. Use #ifdef HAVE_UNISTD_H instead. There are many examples in libiberty. Ian

RE: gcc 4.5.0 libiberty .o vs. .obj confusion

2010-05-03 Thread Jay K
I'm guessing that every ".o" in libiberty/Makefile.in should be changed to $(OBJEXT). Thanks,  - Jay > From: jay.kr...@cornell.edu > To: gcc@gcc.gnu.org > Subject: gcc 4.5.0 libiberty .o vs. .obj confusion > Date: Mon

gcc 4.5.0 libiberty .o vs. .obj confusion

2010-05-03 Thread Jay K
./strverscmp.obj ./vasprintf.obj ./vfork.obj ./strncmp.obj alpha-dec-vms-ar: ./asprintf.obj: No such file or directory make: *** [libiberty.a] Error 1 jbook2:libiberty jay$ edit Makefile alpha-dec-gcc -c foo.c outputs foo.obj. "Something" seems to know this, since: libiberty/Makefile.i

gcc4.5.0/libiberty/pex-common.h missing pid_t on vms

2010-05-03 Thread Jay K
In file included from /src/gcc-4.5.0/libiberty/pex-common.c:23:0: /src/gcc-4.5.0/libiberty/pex-common.h:73:3: error: expected specifier-qualifier-list before 'pid_t' the code: /* pid_t is may defined by config.h or sys/types.h needs to be    included.  */ #if !defined(pid_t)

gcc-4.5.0 internal compiler error on alpha-dec-vms compiling libiberty/regex.c without -mbwx

2010-05-03 Thread Jay K
> src/gcc-4.5.0/libiberty/regex.c: In function 'byte_insert_op2': > /src/gcc-4.5.0/libiberty/regex.c:4279:1: error: unrecognizable insn: > (insn 62 61 63 5 /src/gcc-4.5.0/libiberty/regex.c:4276 (set (reg:DI 135) > (plus:SI (subreg/s:SI (reg/v

Re: why multiple libiberty directories

2010-03-01 Thread Joseph S. Myers
On Mon, 1 Mar 2010, DJ Delorie wrote: > > But I've previously noted that target libiberty seems completely useless; > > It's a target library, like newlib, libz, libstdc++, or anything else. > How do you know there are no target applications that want to link > again

Re: why multiple libiberty directories

2010-03-01 Thread DJ Delorie
> Is it still used outside the "Cygnus tree"? How should I know? I don't know what users of free software do with it... It's a target library. Anyone writing code for any target might use it.

Re: why multiple libiberty directories

2010-03-01 Thread Paolo Bonzini
On 03/01/2010 09:48 PM, DJ Delorie wrote: But I've previously noted that target libiberty seems completely useless; It's a target library, like newlib, libz, libstdc++, or anything else. How do you know there are no target applications that want to link against it? Is it still us

Re: why multiple libiberty directories

2010-03-01 Thread DJ Delorie
> But I've previously noted that target libiberty seems completely useless; It's a target library, like newlib, libz, libstdc++, or anything else. How do you know there are no target applications that want to link against it?

Re: why multiple libiberty directories

2010-02-28 Thread Kaveh R. GHAZI
On Mon, 1 Mar 2010, Jack Howarth wrote: > Somehow the recursive make is broken for libiberty and is silently using > the system compiler. > Jack I believe this is PR29404. IIRC, in addition to libiberty, other recursive "make check"s fail too due to using

Re: why multiple libiberty directories

2010-02-28 Thread Jack Howarth
x86_64-apple-darwin9 or i686-apple-darwin10, I > > noticed > > that we seem to build libiberty both at the toplevel and within the multilib > > subdirectories (x86_64-apple-darwin9 and i686-apple-darwin10 respectively). > > Is this expected behavior as I don't see

Re: why multiple libiberty directories

2010-02-28 Thread Joseph S. Myers
r i686-apple-darwin10, I > > noticed > > that we seem to build libiberty both at the toplevel and within the multilib > > subdirectories (x86_64-apple-darwin9 and i686-apple-darwin10 respectively). > > Is this expected behavior as I don't see anything other than libibe

Re: why multiple libiberty directories

2010-02-28 Thread Andreas Schwab
Jack Howarth writes: >While looking at PR42308 and trying to understand why the make check > is leaky and starts to call the system compiler instead of the xgcc during > a make check on either x86_64-apple-darwin9 or i686-apple-darwin10, I noticed > that we seem to build libib

why multiple libiberty directories

2010-02-28 Thread Jack Howarth
While looking at PR42308 and trying to understand why the make check is leaky and starts to call the system compiler instead of the xgcc during a make check on either x86_64-apple-darwin9 or i686-apple-darwin10, I noticed that we seem to build libiberty both at the toplevel and within the

Re: Add crc32 function to libiberty

2009-07-24 Thread DJ Delorie
> Your code uses the (one and only) CRC-32 polynomial 0x04c11db7, so just > describing it as the "CRC-32" function should be sufficient documentation. > It's the same CRC function as used by PKZIP, Ethernet, and chksum. > It's not compatible with the Intel CRC32 instruction which uses the > CRC-32

Re: Add crc32 function to libiberty

2009-07-24 Thread Ross Ridge
DJ Delorie writes: >I didn't reference the web site for the polynomial, just for background. >To be honest, I'm not sure what the polynomial is. As the comments >explain, the algorithm I used is precisely taken from gdb, in remote.c, >and is intended to produce the same result. Does anybody on th

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile STARYNKEVITCH
Ralf Wildenhues wrote: * Daniel Jacobowitz wrote on Thu, Jul 09, 2009 at 03:43:18PM CEST: While Ralf's point about static data is valid, the functions likely to be in libiberty on any platform supporting plugins should not suffer from this problem. Solaris 9 and IRIX 6.5 su

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Ralf Wildenhues
* Daniel Jacobowitz wrote on Thu, Jul 09, 2009 at 03:43:18PM CEST: > While Ralf's point about static data is valid, the functions likely to > be in libiberty on any platform supporting plugins should not suffer > from this problem. Solaris 9 and IRIX 6.5 support dlopen; gnulib doc

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile STARYNKEVITCH
Daniel Jacobowitz wrote: On Thu, Jul 09, 2009 at 03:45:52PM +0200, Basile STARYNKEVITCH wrote: Daniel Jacobowitz wrote: On Thu, Jul 09, 2009 at 03:01:01PM +0200, Basile STARYNKEVITCH wrote: In simpler words, *.so have to be compiled with -fPIC, and libiberty is not compiled

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Daniel Jacobowitz
On Thu, Jul 09, 2009 at 03:45:52PM +0200, Basile STARYNKEVITCH wrote: > Daniel Jacobowitz wrote: > >On Thu, Jul 09, 2009 at 03:01:01PM +0200, Basile STARYNKEVITCH wrote: > >>In simpler words, *.so have to be compiled with -fPIC, and libiberty > >>is not compiled with -

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile STARYNKEVITCH
Daniel Jacobowitz wrote: On Thu, Jul 09, 2009 at 03:01:01PM +0200, Basile STARYNKEVITCH wrote: In simpler words, *.so have to be compiled with -fPIC, and libiberty is not compiled with -fPIC. We build a PIC libiberty already. Thanks! Where and how is it built? I cannot find any

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Daniel Jacobowitz
On Thu, Jul 09, 2009 at 03:01:01PM +0200, Basile STARYNKEVITCH wrote: > In simpler words, *.so have to be compiled with -fPIC, and libiberty > is not compiled with -fPIC. We build a PIC libiberty already. While Ralf's point about static data is valid, the functions likely to be in l

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Ralf Wildenhues
This is not the case > > of all libiberty functions. > > So... link libiberty into your plugin and get make_temp_file that way. Ahh, another opportunity for subtle bugs stemming from multiple entities of static data, such as random numbers used in a plugin being suspiciously correlated to

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile STARYNKEVITCH
Daniel Jacobowitz wrote: On Thu, Jul 09, 2009 at 10:49:49AM +0200, Basile Starynkevitch wrote: But it seems to me that a plugin can call a libliberty function only if that function is already referenced (e.g. called) from cc1. This is not the case of all libiberty functions. So

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Daniel Jacobowitz
On Thu, Jul 09, 2009 at 10:49:49AM +0200, Basile Starynkevitch wrote: > But it seems to me that a plugin can call a libliberty function only if that > function is already referenced (e.g. called) from cc1. This is not the case > of all libiberty functions. So... link libiberty into yo

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile STARYNKEVITCH
Dave Korn wrote: Basile STARYNKEVITCH wrote: Dave Korn wrote: We might also artificially add a reference to each libiberty function from cc1. Or link it into cc1 et al. using "--whole-archive". Sorry, I am not aware of this option. And are we sur

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Dave Korn
Basile STARYNKEVITCH wrote: > Dave Korn wrote: >> >>> We might also artificially add a reference to each libiberty function >>> from >>> cc1. >> >> Or link it into cc1 et al. using "--whole-archive". >> >> > So

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile STARYNKEVITCH
Dave Korn wrote: We might also artificially add a reference to each libiberty function from cc1. Or link it into cc1 et al. using "--whole-archive". Sorry, I am not aware of this option. And are we sure it works on all the systems GCC is supposed to run on? If w

Re: libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Dave Korn
Basile Starynkevitch wrote: > Hello All, > > Perhaps libiberty should be a shared library, not a static one, linked from > cc1, when GCC has plugin enabled. > We might also artificially add a reference to each libiberty function from > cc1. Or link it into cc1 et al. usin

libiberty should be a shared library when cc1 has plugin enabled.

2009-07-09 Thread Basile Starynkevitch
Hello All, Perhaps libiberty should be a shared library, not a static one, linked from cc1, when GCC has plugin enabled. I noticed the following in the MELT branch (while trying to build MELT as a GCC-Trunk plugin). Some functions of libiberty.h are not linked in cc1 (because cc1 don't

Re: libiberty configuration for DJGPP

2009-04-14 Thread Ian Lance Taylor
Eli Zaretskii writes: > 2009-04-14 Eli Zaretskii > > * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of > existing and required library functions to with_target_subdir > section, so that the native build does detect them at configure > time. This is OK. T

Re: needed-list fails in libiberty

2009-04-14 Thread Joseph S. Myers
On Tue, 14 Apr 2009, Eli Zaretskii wrote: > The following snippet from libiberty/Makefile.in: > > # needed-list is used by libstdc++. NEEDED is the list of functions > # to include there. Do not add anything LGPL to this list; libstdc++ > # can't use anything

needed-list fails in libiberty

2009-04-14 Thread Eli Zaretskii
The following snippet from libiberty/Makefile.in: # needed-list is used by libstdc++. NEEDED is the list of functions # to include there. Do not add anything LGPL to this list; libstdc++ # can't use anything encumbering. NEEDED = atexit calloc memchr memcmp memcpy memmove m

needed-list fails in libiberty

2009-04-14 Thread Eli Zaretskii
The following snippet from libiberty/Makefile.in: # needed-list is used by libstdc++. NEEDED is the list of functions # to include there. Do not add anything LGPL to this list; libstdc++ # can't use anything encumbering. NEEDED = atexit calloc memchr memcmp memcpy memmove m

  1   2   3   >