Bug#211586: complex.h misunderstood by g++

2003-09-18 Thread "Martin v. Löwis"
Josh Stern wrote: Use of the C99 header in a C library header that is then used within a C++ program causes compile/linkage problems. This problem was discovered via failing to compile small examples using the m_get function in the meschach library version included in Debian. This is not a bug.

Re: default CPU target for ix86 based ports

2003-08-07 Thread Martin v. Löwis
Jan-Benedict Glaw <[EMAIL PROTECTED]> writes: > Would Debian accept two ix86 distributions? One i386 and, say, i[56]86? Most developers probably would, if presented with a sound plan that makes that happen and has no downsides (except for the obvious one that ftp archives will need more space).

Re: default CPU target for ix86 based ports

2003-08-07 Thread Martin v. Löwis
Jan-Benedict Glaw <[EMAIL PROTECTED]> writes: > > You are wrong. There are two versions of atomicity.h, one for i486+, > > and the other for i386+ (at the time the other distributors released > > their compilers, there was only the i486+ version, and it was assumed > > to work for i386+, but didn'

Re: default CPU target for ix86 based ports

2003-08-07 Thread Martin v. Löwis
Jan-Benedict Glaw <[EMAIL PROTECTED]> writes: > Am I wrong or did we, "forced" because we wanted to be binary compatible > to some major distributions, just follow others and doing optimization > just as they did? You are wrong. There are two versions of atomicity.h, one for i486+, and the other

Re: default CPU target for ix86 based ports

2003-08-06 Thread Martin v. Löwis
Jan-Benedict Glaw <[EMAIL PROTECTED]> writes: > Having a "broken" libstdc++ is already bad enough. Please, please please > please please don't make it worse as it's already today. I heared rumors > that gcc-3.4 might fix the current situation (wrt. libstdc++). Don't believe these rumors; they are

Re: should bugs really be closed?

2003-07-29 Thread &quot;Martin v. Löwis"
Nikita V. Youshchenko wrote: gcc 3.3 is an update for gcc 3.2, so it fixes bugs reported in gcc. But what about bugs reported on gcc-3.2? Why is the answer to that question of any relevance for Debian? Regards, Martin

Re: should bugs really be closed?

2003-07-29 Thread Martin v. Löwis
"Nikita V. Youshchenko" <[EMAIL PROTECTED]> writes: > As gcc changelog.Debian states, bugs filed against earlier versions of gcc > (e.g. gcc-3.2 or gcc-2.95) are closed when they are fixed in later version > (e.g. gcc 3.3). > > Is that really correct? > gcc-3.2 package is still in Debian and stil

Bug#202017: gcc-3.3: Unnecessary branching with INET/INET6 port setting

2003-07-19 Thread Martin v. Löwis
Falk Hueffner <[EMAIL PROTECTED]> writes: > This is not the problem. gcc assumes the asm will return the same > value unless it is explicitely marked "volatile" (or has no oputputs), > and will happily merge them. I see. Then this would be a glibc bug, for using __asm__ __volatile__ in __bswap16.

Bug#202017: gcc-3.3: Unnecessary branching with INET/INET6 port setting

2003-07-19 Thread Martin v. Löwis
<[EMAIL PROTECTED]> writes: > As you can see, the branch due to the family is unnecessary. This bug > exists in gcc272, gcc 2.95 and gcc 3.2 It is unlikely that this bug will ever get fixed, as gcc won't be able to determine that the two __asm__ blocks really have the same effect. So if you wan

Re: GCC problems!!

2003-07-19 Thread Martin v. Löwis
BjÂÃrn Johansson <[EMAIL PROTECTED]> writes: > Hello! > > I have problems with GCC. I thought that my problems were caused > by libc, so I upgraded to the latest version(2.3.x), but it made > no difference, GCC still can't find the required header files when > I try to compile something. It can't

Re: __cxa_atexit and __dso_handle

2003-07-06 Thread Martin v. Löwis
[EMAIL PROTECTED] (David N. Welton) writes: > Since I don't have shared libraries, is it ok if I just define it, > just so it's there? > > void* __dso_handle = (void*) &__dso_handle; That should work, yes. > BTW, can you also confirm that this is for C++ only? In GCC, it is for C++ only, yes

Re: __cxa_atexit and __dso_handle

2003-07-06 Thread &quot;Martin v. Löwis"
David N. Welton wrote: The problem is that despite using -nostdlib whilst compiling, I still get __cxa_atexit and __dso_handle defined in my .o files (yes, eCos utilizes C++ in places). I think the problem is not that you are getting definitions, but that you are getting references to these symbol

Bug#197375: gcj dies en parsing java code with high ASCII values in it

2003-06-15 Thread &quot;Martin v. Löwis"
Peter Hawkins wrote: I've never touched the locale on my systems, so it's the default (LANG="C"?) Please invoke locale(1) to be sure. However, there is still a minor problem in that running the 'java' wrapper script picks a different default encoding to the default encoding of the jdk. I gather t

Bug#197375: gcj dies when parsing java code with high ASCII values in it

2003-06-14 Thread Martin v. Löwis
Peter Hawkins <[EMAIL PROTECTED]> writes: > gcj doesn't appear to like high-valued characters in it's input stream. Please don't use the term "high ASCII", there is no such thing. Most likely, you are talking about Latin-1 (but it could also be that you are talking about UTF-8 or Latin-9). > Si

Re: Feature request: gcc should warn upon conversions ptrdiff_t -> int

2003-06-12 Thread Martin v. Löwis
Phil Edwards <[EMAIL PROTECTED]> writes: > > int foo(int *x, int *y) > > { > > return x - y; > > } > > There is no conversion to int. foo* may be subtracted from foo* for any > type foo. It's normal pointer arithmetic. This code is fine. You are missing the point. The result of the subtr

Bug#196754: Implicit Conversion Allowed in Container Object Insertion

2003-06-10 Thread Martin v. Löwis
Fredrick Paul Eisele <[EMAIL PROTECTED]> writes: > /usr/include/c++/3.2/bits/stl_vector.h:893: no matching function for > call to `Field::Field(const Field&)' Are you reporting some kind of bug, or are you merely requesting a new feature? If this is a bug report: What is the bug? What is the spe

Bug#195806: g++: inheritance of overloaded function

2003-06-02 Thread Martin v. Löwis
Heiko Scheit <[EMAIL PROTECTED]> writes: > I am not sure this is a bug, but I thought that the inheritance should > work also in this case (i.e. with overloaded functions). This is not a bug. In standard C++, methods in a derived class hide methods in the base class. Any C++ book will tell you so

Bug#195468: g++-3.3: default construction fails when no explicit default constructor defined

2003-05-31 Thread Martin v. Löwis
Herbert Valerio Riedel <[EMAIL PROTECTED]> writes: > ...so... is _still_ not a buggy behaviour?? No. Look at 8.5/9: # If no initializer is specified for an object, and the object is of # (possibly cv-qualified) non-POD class type (or array thereof), the # object shall be default-initialized; if

Bug#195353: java.net.SocketException: SO_REUSEADDR: not valid for TCP

2003-05-30 Thread Martin v. Löwis
Adam Heath <[EMAIL PROTECTED]> writes: > java.net.SocketException: SO_REUSEADDR: not valid for TCP [...] > It is perfectly fine to set that option for a tcp socket. Setting it for > udp makes no sense. Hmm. http://java.sun.com/j2se/1.4.1/docs/api/java/net/SocketOptions.html#SO_REUSEADDR says S

Bug#194393: linstdc++5 breaking packages on debian sarge

2003-05-23 Thread &quot;Martin v. Löwis"
Sébastien FRANÇOIS wrote: /usr/bin/tbl: /usr/local/lib/libgcc_s.so.1: version `GCC_3.3' not found Can you report what package /usr/local/lib/libgcc_s.so.1 belongs to? Just try removing that file. Regards, Martin

Re: g++-3.3 should warn about class/struct equivalence

2003-05-22 Thread Martin v. Löwis
Thomas Richter <[EMAIL PROTECTED]> writes: > g++-3.3 should warn about an object declared as a class that is later > on used as a "struct". This would simplify the generation of portable > code as at least one other popular compiler will generate warnings for > this case that could be easily avoid

Bug#193787: Oh boy...

2003-05-19 Thread Martin v. Löwis
Matthias Klose <[EMAIL PROTECTED]> writes: > Please could you point me to the invariant-section material? Tried to > find it, but maybe it's too late here in Europe and I'm not awake :-( cd gcc/doc grep Invariant *.texi cpp.texi:This manual contains no Invariant Sections. The Front-Cover Texts a

Bug#191865: cpp-3.2: utah-glx_0.0-cvs-20010702-4.3(unstable/m68k) FTBFS: "/lib/cpp" fails sanity check

2003-05-05 Thread Martin v. Löwis
"Adam Conrad" <[EMAIL PROTECTED]> writes: > Here you go: > > http://people.debian.org/~adconrad/utah-glx/ That appears to be a bug in the build machine installation, then, or in glibc: invocation gcc -E conftest.c should have worked: This *is* the way to invoke the preprocessor. However, it g

Bug#191865: cpp-3.2: utah-glx_0.0-cvs-20010702-4.3(unstable/m68k) FTBFS: "/lib/cpp" fails sanity check

2003-05-04 Thread &quot;Martin v. Löwis"
Matijs van Zuijlen wrote: See `config.log' for more details. Can you provide the relevant fragment of config.log, for more details? Regards, Martin

Bug#190823: gcc-defaults should provide c99 utility

2003-04-26 Thread &quot;Martin v. Löwis"
Package: gcc-defaults Version: 1.5 Severity: wishlist According to http://www.opengroup.org/onlinepubs/007904975/utilities/c99.html a POSIX system should provide a c99 utility if the "C Languages Development Utilities" feature is supported. Regards, Martin

Bug#188976:

2003-04-26 Thread Martin v. Löwis
Matt Zimmerman <[EMAIL PROTECTED]> writes: > > Is there a cure in sight? Who feels responsible for fixing this bug? I > > am getting desperate... > > I have reassigned the bug to the gcc maintainers, who will evaluate it. In any case, I suggest to apply a work-around: Fixing the bug may take da

Re: Problem with building OpenOffice.orgBeta on debian-unstable (PPC)

2003-03-30 Thread Martin v. Löwis
Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > I don't know if this is the problem or not, but you should kill the > -I/usr/include. Specifying that manually is almost always wrong. Most likely: I guess he's picking up the wrong stddef.h. -I/usr/include/linux should go with it: No user-space pr

Re: GCC segfault very often if LANG!=C

2003-03-28 Thread Martin v. Löwis
Benjamin Dauvergne <[EMAIL PROTECTED]> writes: > Could I suggest you to compile GCC with --disable-nls or without > packaging certain translations like french because they causes bug in > gcc/g++ when error messages must be printed. It's a known bug in the bug > database of gcc[1]. With

Re: help with gcc-3.2 related bug

2003-03-04 Thread Martin v. Löwis
Daniel Jacobowitz <[EMAIL PROTECTED]> writes: > Well, presumably he is linking using gcc to avoid libstdc++; is there > anything besides the missing library which g++ would change? Yes, there are minor differences: g++ adds -lm -lgcc_s, gcc adds -lgcc (or -lgcc_eh). Those shouldn't make a differe

Re: help with gcc-3.2 related bug

2003-03-03 Thread Martin v. Löwis
Fernando Sanchez <[EMAIL PROTECTED]> writes: > I have been suggested to ask for help here; please bounce me > somewhere else if I am writing to the wrong address. I got a bug reported on > libsablot0c102 package, which appeared on the migration to gcc-3.2. Do you > recommend adding -lstdc++,

Re: gnat-3.2 transition plan

2003-03-02 Thread Martin v. Löwis
Matthias Klose <[EMAIL PROTECTED]> writes: > Rumour says, that there will be one more C++ ABI change to fix bugs > found after the gcc-3.2 release (maybe for gcc-3.4), and then the C++ > ABI will be stable ... I believe this is a misprediction of the future. Here is my prediction: 1. The "core"

Re: Gcc 3.x seems to create incorrect code

2003-01-24 Thread Martin v. Löwis
Miah Gregory <[EMAIL PROTECTED]> writes: > As such, I've come here in the hope that someone can suggest how I might > find out the exact cause of the problem, as I've never had to try and track > down potential compiler bugs before. Dear Miah, As a starting point, you have to find precisely out

Bug#177303: Accepts illegal declaration "int x[2, 3];" in C99 mode

2003-01-20 Thread Martin v. Löwis
Anthony DeRobertis <[EMAIL PROTECTED]> writes: > > The declaration > > > > int x[2, 3]; > > > > is not legal in C99, since "2, 3" is not an assignment-expression. > > I'm not a C99 language lawyer, but are you sure? Is the comma operator > allowed there, or would one have to write "int x[(2,3)]"

Re: array wrapper

2003-01-09 Thread Martin v. Löwis
Hans Ginzel <[EMAIL PROTECTED]> writes: > Probably it could be useful for others, but don't know where to post > it. This is likely the wrong place. If you want to publish it, you should best release it as a package of its own, or contribute it to some existing library package, such as Boost.

Bug#79225: further information needed for your Debian report #79225

2002-12-28 Thread &quot;Martin v. Löwis"
Matthias Klose wrote: Martin, is there anything we can do without further information? There is clearly a bug in the compiler: the compiler should have rejected the code in the first place. In http://gcc.gnu.org/ml/gcc/2002-08/msg00401.html a patch for this bug is mentioned, but I don't know if a

Bug#171561: help needed with Debian report -- forwarded message from Francesco Potorti`

2002-12-27 Thread &quot;Martin v. Löwis"
Matthias Klose wrote: bug-171561.cc:14: `bin' is not a member of type `std::basic_ios >' [...] std::ifstream f (argv[1], ios::bin | std::ios::in); What gcc is that? I get a.c:14: `ios' undeclared (first use this function) If I fix this to read "std::ios::binary", as it should read in C++, I get

Bug#171561: help needed with Debian report -- forwarded message from Francesco Potorti`

2002-12-27 Thread &quot;Martin v. Löwis"
Sorry if this is not a bug, but I cannot find any way why it isn't. [...] bin2a.cc: In function `int main(int, char**)': bin2a.cc:9: `cerr' undeclared (first use this function) It is not a bug, cerr is really not a predefined identifier in C++. What you mean is std::cerr. Regards, Martin

Re: 3.2 transition

2002-12-17 Thread Martin v. Löwis
Junichi Uekawa <[EMAIL PROTECTED]> writes: > I've thought having a directory for doing LD_LIBRARY_PATH might help > people keep compatibility with other dists or legacy applications, > > thoughts? I think that should happen on a case-by-case basis, with a bias towards not providing the library.

Re: Bug#171699: gcc-3.2: please include the stack-protector patch

2002-12-04 Thread Martin v. Löwis
Martin Wuertele <[EMAIL PROTECTED]> writes: > Please include the stack-protector patch from > http://www.trl.ibm.com/projects/security/ssp/gcc3_2/protector-3.2-5.tar.gz This wish is unlikely to be implemented. If you want to see this to become part of Debian gcc, I recommend that you first ask GC

Re: Bug#171123: g++-3.2: incorrect use of default assignment operator?

2002-11-29 Thread Martin v. Löwis
Ben Burton <[EMAIL PROTECTED]> writes: > I would have expected a compile error, since the declaration > "Foo bar = foo;" tries to use the non-existant default constructor for > class Foo. No, it doesn't. This is not a initialization followed by an assignment operator; there is no assignment opera