Re: Error in -Wuninitialized? Should this be reported?

2008-12-07 Thread Brian Dessent
Goswin von Brederlow wrote: In Foo the variable is just uninitialized, in Bar it is definetly used uninitialized and in Baz it might be used uninitialized. Is there any -W switch to make g++ detect such errors or is that a shortcomming of -Wuninitialized? Your example is just not what

Re: Where is DESTDIR got defined in gcc makefile?

2008-12-07 Thread Brian Dessent
Amker.Cheng wrote: Here the destination directory is $(DESTDIR)$(libexecsubdir)/, but where is DESTDIR defined? I did not find any definition of this variable in both toplevel and gcc's makefile. It's intentionally not defined anywhere as it's expected to remain unset unless the user

Re: Cygwin support

2008-11-14 Thread Brian Dessent
Andy Scott wrote: Looking over the bugzilla data base and archives of this (and other) lists I was wondering about the level of support there is for GCC on Cygwin. (I realise that it is weird half-way house to many people and so does get a fair amount of abuse from both the Windoze

Re: Cygwin support

2008-11-14 Thread Brian Dessent
Paul Brook wrote: If you really want to solve this then you could always stop using PE/COFF. The ARM EABI (and in particular the arm-none-symbianelf target) demonstrates how this can be done. Basically the toolchain generates ELF objects, executables and DSOs, then you feed them through a

Re: Cygwin support

2008-11-14 Thread Brian Dessent
Tim Prince wrote: bootstrap failures are due to a broken #ifdef specific to cygwin in the headers provided with cygwin, If you mean the strsignal change in libiberty, that's been fixed in CVS for a long time. the requirement for a specific version of autoconf (not available in setup), You

Re: Cygwin support

2008-11-14 Thread Brian Dessent
Andrew Haley wrote: So do that, then. Where's the problem? I suppose it's not a problem if the alternative is no plugin support at all. It just seems a little ugly for the plugin author to have to distribute 'n' trivially different but substantially identical copies of their plugin binary for

Re: Cygwin support

2008-11-14 Thread Brian Dessent
Joseph S. Myers wrote: As I understand it, there is an alternative - put all the shared code in a DLL on Windows if configuring with plugins enabled, and link both the plugins and cc1, cc1plus etc. with that DLL. If people wish to enable The problem with that approach is that people have so

Re: Antwort: Re: Antwort: Re: [PATCH]: bump minimum MPFR version, (includes some fortranbits)

2008-10-14 Thread Brian Dessent
Nils Pipenbrinck wrote: Cygwin comes with a GCC 3.4.somewhat out of the box. To compile MPFR you need a 4.1 compiler. So you have to double compiling everything. And I don't know where you get that assertion but it's not true. mpfr built with gcc 3.4 works just fine and passes all tests in

Re: about g++ compilation for class constructor/destructor

2008-09-28 Thread Brian Dessent
drag chan wrote: my question is why every constructor/destructor of class A have a couple of same code blocks in the object file? The ABI requires two separate versions of the ctor and dtor, one for when the object being initialized is a base class and one where it's not. Because you used -C

Re: Adding to G++: Adding a warning on throwing unspecified exceptions.

2008-09-21 Thread Brian Dessent
Simon Hill wrote: http://gcc.gnu.org/onlinedocs/gccint/index.html. (Of course I was horrified to see it's not written in C++, and it's loaded with macros --- why??). You seem to refer to g++ as if it's a separate program from gcc but it's really not. All of the middle- and back-end code is

Re: Defining a common plugin machinery

2008-09-19 Thread Brian Dessent
Ralf Wildenhues wrote: * Windows (cygwin/mingw) As i understand the issue (I am not very familiar with this) you can't have unresolved references in a plugin back to the GCC executable. I.e. Building GCC with -rdynamic will not work on this platform. Do we move most of the GCC

Re: Defining a common plugin machinery

2008-09-19 Thread Brian Dessent
Basile STARYNKEVITCH wrote: (a meta question: do we need to reply-to all, or should the gcc@ list be enough to discuss plugins, and the only destination of this interesting discussion?). Reply-to-all is the common standard on the list. If you don't want a personal copy then set the Reply-to:

Re: Recent libstdc++ regression on i686-linux: abi/cxx_runtime_only_linkage.cc

2008-08-27 Thread Brian Dessent
H.J. Lu wrote: For Linux/x86, if gcc is configured for xxx-*-linux, the default arch should be xxx for both 32bit and 64bit, where xxx can be i[3456]86, pentium, ... x86-64. Is someone working on such a patch? IMHO making this Linux specific just replaces one confusing and arbitrary decision

Re: gcc emit wrong symbols in multiple inheritance case

2008-07-31 Thread Brian Dessent
Bo Yang wrote: When we produce an exe from a single c++ file, there is no linking need, so there is no problem. But when we separate the definition and That's not how it works, the linker is always required to produce an executable. And Obviously, this is not a linker error, it is the

Re: gcc emit wrong symbols in multiple inheritance case

2008-07-30 Thread Brian Dessent
Benjamin Smedberg wrote: For what it's worth, Bo is my intern in the Google SoC and has traced this back to being a code-generation error (missed stdcall mangling) in the mingw backend. I will work with him to narrow the problem and reformulate the question.. Isn't this

Re: Can't build correctly working crosscompiler with 4.3.0. 4.2.1 worked like charm

2008-04-16 Thread Brian Dessent
Denys Vlasenko wrote: (Is it necessary to do this /../../../../ thing?) A useful trick to make this easier for a human to read is to pipe the output through sed -e :a -e s,[^/]*/\.\.\/,, -e ta I don't guarantee that this will always result in the correct semantics in all situations but it's

Re: Can't build correctly working crosscompiler with 4.3.0. 4.2.1 worked like charm

2008-04-16 Thread Brian Dessent
Denys Vlasenko wrote: Only in my case, $prefix contain neither as nor ld. gcc lives in Okay, so prepend /usr/app/binutils-2.18-x86_64-linux-uclibc/bin to PATH and gcc will find and use x86_64-linux-uclibc-{as,ld} without any of --with-{as,ld}. it's much better for sanity that way. I would

Re: Regenerating configure scripts

2008-03-24 Thread Brian Dessent
Michael Eager wrote: I've noticed a problem with the patch: if test ${with_newlib+set} = set; then AC_LIBTOOL_DLOPEN fi The test always succeeds. When $with_newlib is yes, ${with_newlib+set} is set. If I change this to the old style test if test x$with_newlib = x; then

Re: gcc-4.1-20080303 is now available

2008-03-16 Thread Brian Dessent
NightStrike wrote: What exactly is the downside to upgrading the license? I'm not familiar with the implications of doing so. As I understand it, the concern is that many distros use the 4.1 branch as the base for their main gcc system compiler. If suddenly the branch gets upgraded to GPLv3

Re: GCC 4.3 - Error: Link tests are not allowed after GCC_NO_EXECUTABLES

2008-03-11 Thread Brian Dessent
Hans Kester wrote: I searched for this error and found: http://gcc.gnu.org/ml/gcc/2007-09/msg00421.html Wasn't this patched? How do I fix this? It wasn't actually fixed. That was a very long thread and it's easy to get confused, particularly since the mailing list archives don't crossthread

Re: Successfull build of gcc 4.2.3 with MinGW 5.13 in windows XP

2008-02-29 Thread Brian Dessent
Weddington, Eric wrote: This is a very old issue. MinGW/MSYS does not support links. The easiest way around this is to just copy the file. But MSYS's 'ln -s' command makes copies of files for exactly this reason, so the question remains why it's necessary to hack it to be cp. Brian

Re: Successfull build of gcc 4.2.3 with MinGW 5.13 in windows XP

2008-02-29 Thread Brian Dessent
Weddington, Eric wrote: You're definitely the expert on this. Has MSYS always done this? Or was there an older version that didn't that the OP might be using? I'm fairly sure it has been implemented like that since the beginning. One possible reason why you might need to force cp to be used

Re: plugin includes for MELT

2008-02-27 Thread Brian Dessent
Basile STARYNKEVITCH wrote: I'm trying to understand how other plugin related effort deals with this. In an ideal world, you create a plugin API/ABI that is decoupled from any of the internals of the main program and which has its own headers and interface. Plugin authors simply code to that

Re: libiberty/pex-unix vfork abuse?

2007-12-10 Thread Brian Dessent
Andreas Schwab wrote: Typically in a multithreaded environment vfork is mapped to fork anyway. ...which is what I don't understand about this whole thread. It seems Dave is seeing some strange behavior in Cygwin, but Cygwin's vfork = fork, there is no difference. There used to be a vfork

Re: gcc 4.2.2, libgomp under cygwin

2007-11-26 Thread Brian Dessent
Joerg Frochte wrote: *** This configuration is not supported in the following subdirectories: target-libmudflap target-libgomp target-libffi target-zlib target-libjava t arget-libada gnattools target-libstdc++-v3 target-libgfortran zlib target-libobj c target-boehm-gc (Any other

Re: How to run testsuite without building a complier

2007-10-05 Thread Brian Dessent
Mohamed Shafi wrote: I want to know whether its possible to run the gcc testsuite without actually building the complier. I have the dejagnu framework, compiler executables and i have the gcc test suite. So is it possible to run the testsuite without building the complier? Use the

Re: WARNING bootstrapping GFortran on Cygwin

2007-08-22 Thread Brian Dessent
Angelo Graziosi wrote: configure: WARNING: fixed-point is not supported for this target ^ checking whether make sets $(MAKE)... yes ... This warning was absent with the bootstrap I did 20070819 trunk-127626. That's because

Re: problem about generating data section in g++ 4.2

2007-07-19 Thread Brian Dessent
Ling-hua Tseng wrote: If I compile this file with g++ 4.2 by the following command: g++ -c test.cxx and then use this command to check symbol: nm test.o I cannot find the global varible `test' in symbol table: This was an intentional change as part of the overhaul of C++ visibility

Re: RFC: Enabling DFP/libbid on dditional target (mingw32)

2007-07-06 Thread Brian Dessent
Danny Smith wrote: Or am I missing a more fundamental reason for the limited range of targets supporting DFP? Enabling it in gcc would just enable the compiler parts, but the decimal float C extension proposed standard includes a lot more than that, there's a whole checklist of stuff required

Re: Decimal float and the Cygwin build of GFortran.

2007-07-04 Thread Brian Dessent
Angelo Graziosi wrote: ./configure --prefix=${prefix_dir} \ According to the documentation you should not do this (build in the same dir as the source.) A few months ago this did not happen (same building procedure). The warning is correct because libdecnumber is only supported

Re: I'm sorry, but this is unacceptable (union members and ctors)

2007-06-18 Thread Brian Dessent
michael.a wrote: gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5) This belongs on gcc-help not here. Debian-based distros use a 32/64 bit /usr/lib configuration that is backwards from what the rest of the world uses and requires a patched gcc to multilib correctly. You'll probably need to

Re: MinGW, GCC Vista,

2007-05-08 Thread Brian Dessent
[EMAIL PROTECTED] wrote: Do you guys know if the problem with the access() standard library function has been worked around? Windows vista has an updated MSVCRT.DLL which returns false for access() using X_OK, this parameter was previously ignored, and returned true. MinGW / GCC does not

Re: MinGW, GCC Vista,

2007-05-08 Thread Brian Dessent
Mark Mitchell wrote: I'm disappointed to hear that MinGW made this change. As a MinGW user, I don't want MinGW to interpose anything between me and the MSVCRT libraries. I want MinGW to give me headers and import libraries for the Microsoft DLLs, with all their warts; nothing more, nothing

Re: Combined tree builds for mingw32

2007-05-07 Thread Brian Dessent
Daniel Jacobowitz wrote: The failing command is trying to compile the PCH. This means that we're including a large number of libstdc++ headers in a row. One of the first ones pulls in c++config.h, which has #undef max; but so far, nothing has included windows.h. Later, something includes

Re: Cygwin build documentation error.

2007-05-01 Thread Brian Dessent
Aaron Gray wrote: I am getting errors on building Cygwin. It appears to be something to do with the documentation. Am I missing something simple such as a package like cygwin-doc and if so where do I get it ? Error text below... Many thanks in advance, [...]

Re: Successfull Build of gcc on Cygwin WinXp SP2

2007-05-01 Thread Brian Dessent
Aaron Gray wrote: JFTR, the patch is only required for building gcc, not for building winsup. As Brian says, we'll deal with any winsup problems on the cygwin list. Sorry for adding to the confusion as I am actually trying to build GCC CVS on Cygwin :) Can you give me any

Re: Successfull Build of gcc on Cygwin WinXp SP2

2007-05-01 Thread Brian Dessent
Aaron Gray wrote: Thank you. I am a bit unsure of where abouts (what directory) do you install the snapshot ? Again, this has nothing to do with gcc, take it the Cygwin list. If you are using the full snapshots (cygwin-inst-$date.tar.bz2) they should be unpacked in the root (/). The other

Re: Accessing signgam from the middle-end for builtin lgamma

2007-04-26 Thread Brian Dessent
Dave Korn wrote: On 25 April 2007 18:55, Kaveh R. GHAZI wrote: I'd like to work on using MPFR to handle builtin lgamma. In what sense is it a builtin if it requires a library to be installed and emits a call to a library function ??? I may not have understood what you're trying to do

Re: Problem building gcc on Cygwin

2007-04-19 Thread Brian Dessent
Tom Dickens wrote: make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap I don't know if 4.1.2 includes the toplevel bootstrap changes or not (it's kind of old), but I don't think you should be doing make bootstrap. The new method is to either configure

Re: Build report: Successful build of gcc 4.1.2 on Cygwin (Win XP Pro SP2)

2007-04-05 Thread Brian Dessent
Jesper de Jong wrote: /home/jesper/gcc-4.1.2/configure --enable-threads=win32 Where do people keep getting this idea that Cygwin uses win32 threads? It doesn't, and you've most likely built a compiler that is subtly broken in some way. Cygwin uses pthreads, this should be

Re: Build report: Successful build of gcc 4.1.2 on Cygwin (Win XP Pro SP2)

2007-04-05 Thread Brian Dessent
Aaron W. LaFramboise wrote: I don't really see any compelling reason that win32 threads shouldn't work on Cygwin. As far as I know, nothing about this choice is ultimately exposed to the user. In fact, Win32 threads are quite likely to yield superior performance anywhere where it matters.

Re: Build report for gcc 4.1.1 on Cygwin

2007-03-31 Thread Brian Dessent
Tarmo Pikaro wrote: Tried to compile gcc 4.1.1 (and .2) under windows / cygwin environment - and end up with error: This is more a question for gcc-help. Used command lines: $ ./configure

Re: Can't bootstrap gcc 4.2 RC1 on cygwin: gcc/boehm-gc/misc.c:680: undefined reference to `_GC_get_thread_stack_base'

2007-03-21 Thread Brian Dessent
Christian Joensson wrote: /usr/local/src/branch/objdir/gcc/gcj -B/usr/local/src/branch/objdir/i686-pc-cygwin/libjava/ -B/usr/local/src/branch/objdir/gcc/ -ffloat-store -fomit-frame-pointer -g -O2 -o jv-convert.exe --main=gnu.gcj.convert.Convert -shared-libgcc

Re: Question for removing trailing whitespaces (not vertical tab) from source

2007-03-13 Thread Brian Dessent
Kai Tietz wrote: Ok, I will try for this. I have to find a different editor, which is not too smart as to remove trailing whitespaces ... Or just add -w to the diff options when generating the patch. Brian

Re: AC_LIBTOOL_WIN32_DLL for libgfortran

2007-03-11 Thread Brian Dessent
FX Coudert wrote: There is effort to get that done, as you can see in the recent (few days ago) thread starting here: http://gcc.gnu.org/ml/gcc/2007-03/msg00293.html Please feel free to step into this other discussion and help/give advice about how achieve this goal. Yeah, I've been

Re: AC_LIBTOOL_WIN32_DLL for libgfortran

2007-03-10 Thread Brian Dessent
FX Coudert wrote: I tried adding AC_LIBTOOL_WIN32_DLL to configure.ac (just before AM_PROG_LIBTOOL) and -no-undefined to libgfortran_la_LDFLAGS, as is indicated in the autobook and other online resources. but configure (on a cross-compiler from i686-linux to i386-pc-mingw32) still says: Did

Re: Cannot build gcc-4.1.2 on cygwin: /bin/sh: kinds.h: No such file or directory

2007-02-21 Thread Brian Dessent
Brooks Moses wrote: Í just tried to build gcc-4.1.2 for cygwin... but failed. My old way of test building does not seem to work anymore for me. [...] grep '^#' kinds.h kinds.inc /bin/sh: kinds.h: No such file or directory [...] Any ideas of what might be going wrong? A quick bit

Re: Cannot build gcc-4.1.2 on cygwin: /bin/sh: kinds.h: No such file or directory

2007-02-21 Thread Brian Dessent
[ adding gcc@ back to CC ] Christian Joensson wrote: for k in 4 8 10 16; do echo real (kind=$k) :: x tmp$$.f90 echo end tmp$$.f90 /usr/local/src/branch/objdir/./gcc/gfortran \ -B/usr/local/src/branch/objdir/./gcc/ \ -B/usr/local/i686-pc-cygwin/bin/ \

Re: distributing g++

2006-12-15 Thread Brian Dessent
Bob Rossi wrote: Since i've used a prefix, I'm assumming gcc wants to be installed where I told it to be. I'm wondering 2 things. It's not supposed to be that way. The toolchain is supposed to be relocatable for MinGW targets. I don't know if it currently is, but read the past threads on the

Re: build error

2006-10-17 Thread Brian Dessent
Consider posting this kind of question to gcc-help@ instead. [EMAIL PROTECTED] wrote: I just ran these commands: svn -q checkout svn://gcc.gnu.org/svn/gcc/trunk gcc mkdir builddir cd builddir CFLAGS=-g ../gcc/configure --enable-languages=c,c++ --enable-checking \ --disable-bootstrap

Re: [cygwin] libjava/java/lang/natClass.cc:904: error: thread-local storage not supported for this target

2006-10-12 Thread Brian Dessent
Andrew Haley wrote: That __thread variable is surrounded by HAVE_TLS. There is a configure test which simply compiles this line: __thread int foo; and that configure test must succeed for HAVE_TLS to be set. So, to fix this we need to find out if that program did compile, and if so,

Re: RFC: __cxa_atexit for mingw32

2006-06-25 Thread Brian Dessent
Danny Smith wrote: is a good thing: replace an ISO standard-conformant and perfectly adequate atexit function already supplied by OS vendor with a new version, perhaps with some licensing strings attached. I expect the fake cxa_atexit hack I illustrated earlier would meet less resistance,

Re: Cross-compilation and Shared Libraries

2006-06-13 Thread Brian Dessent
Ranjit Mathew wrote: I just noticed that even with --disable-static --enable-static, Do you mean --disable-static --enable-shared? a Linux-to-MinGW cross compiler (mainline) still created static libraries for the C++ and Java runtimes. Is this by design or is it a bug? From the point of

Re: Crossed-Native Builds, Toolchain Relocation and MinGW

2006-04-24 Thread Brian Dessent
Dave Murphy wrote: [EMAIL PROTECTED] /e $ gcc /usr/local/test/test.c -o /usr/local/test/test.exe [EMAIL PROTECTED] /e $ /usr/local/test/test.exe E:\msys\local\test\test.exe [EMAIL PROTECTED] /e $ As you can see the paths are translated by the shell before being passed to windows

Re: i686-pc-cygwin crash gcc-4.0 branch

2005-11-09 Thread Brian Dessent
Brian Dessent wrote: /home/sherlock/gcc/o/gcc/xgcc -B/home/sherlock/gcc/o/gcc/ -B/usr/local/i686-pc-c ygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/i nclude -isystem /usr/local/i686-pc-cygwin/sys-include -DHAVE_CONFIG_H -I. -I../. ./../../gcc-4_0

Re: i686-pc-cygwin crash gcc-4.0 branch

2005-11-08 Thread Brian Dessent
Bobby McNulty wrote: I have been noticing the following error in trunk and in branch. I get no such error when compiling the trunk. /home/sherlock/gcc/o/gcc/xgcc -B/home/sherlock/gcc/o/gcc/ -B/usr/local/i686-pc-c ygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem

Re: warning on i686-pc-cygwin

2005-10-10 Thread Brian Dessent
bobby mcnulty wrote: This bug is in the GCC source code. Filed on Monday, Oct. 10, 2005 You're running into PR21766.

pr 22207: Spurious 'might be used uninitialized' warnings

2005-09-05 Thread Brian Dessent
I hope it's not bad etiquette to ping a PR but I would greatly appreciate it if someone could take a quick look at PR 22207 which has gone for several months with no replies. The problem involves bogus might be used uninitialized warnings in STL headers, but only at -O2 and above. This makes

Re: Help on -Wl option

2005-07-22 Thread Brian Dessent
[EMAIL PROTECTED] wrote: My compilation exited with the message : Please read the documentation for ld's --enable-auto-import for details. WHERE CAN I FIND INFORMATION ON THIS OPTION ?!!! I could find anything on gcc or ld or -Wl related pages. Did you even try looking in the ld

Re: GCC 3.3.6 has been released

2005-05-29 Thread Brian Dessent
Gabriel Dos Reis wrote: yes, if you spot any inconsistency I'm very happy to accept a patch ;-) I noticed that on http://gcc.gnu.org/install/specific.html#windows it states: A port of GCC 2.95.2 and 3.x is included with the Cygwin environment. However, the Cygwin project had to remove its

Re: GCC 3.3.6 has been released

2005-05-29 Thread Brian Dessent
Gabriel Dos Reis wrote: yes, if you spot any inconsistency I'm very happy to accept a patch ;-) Also, the link GCC Frontend HOWTO on readings.html is 404 compliant.--- readings.html.orig 2005-05-29 11:23:38.405875000 -0700 +++ readings.html 2005-05-29 11:24:03.405875000 -0700 @@ -75,7