memset() Optimization on x86-32 bit

2005-08-26 Thread Kevin McBride
I have a bit of a disagreement with the optimization toward memset() calls. In one of my libraries, libteklti, I have a function named ucharempty(), which frees a uchar_t (unique character structure) from memory. If the user elects to have the memory erased prior to calling free(), memset() is s

Re: Cross Compiler Unix - Windows

2005-08-26 Thread Daniel Jacobowitz
Most of this really doesn't deserve an answerr, but I'll give you a couple anyway. You spend a lot of time blaming people for their opinions, without any evidence that you've actually understood their opinions right. Most of what I've snipped is completely untrue. On Fri, Aug 26, 2005 at 10:59:5

Re: Uninitialized use warning message

2005-08-26 Thread Kean Johnston
A common situation would be: if (condition) { flag = 1 msg = "Hello World"; } else flag = 0; [1] ... if (flag) printf ("I say, %s\n", msg); [2] Point [1] is where I "fail" to in

Re: 4.2 Project: "@file" support

2005-08-26 Thread Mark Mitchell
DJ Delorie wrote: However, I have a counter-proposal, which is that we use libiberty's existing buildargv. I wasn't specifying DJGPP's exact code, mostly these features: OK. 1. Recursion. @file inside another @file causes further expansion. Yes, my implementation happened to already do

Re: Uninitialized use warning message

2005-08-26 Thread Eyal Lebedinsky
Kean Johnston wrote: > Hello everyone, > > There is a warning message I would dearly love to see improved > a little. Its the one where you use a variable without it being > initialized first: > > foo.c:123: warning: `foo' might be used unitialized in this function > > Obviously, there was som

Uninitialized use warning message

2005-08-26 Thread Kean Johnston
Hello everyone, There is a warning message I would dearly love to see improved a little. Its the one where you use a variable without it being initialized first: foo.c:123: warning: `foo' might be used unitialized in this function Obviously, there was some code somewhere that used variable `f

Re: 4.2 Project: "@file" support

2005-08-26 Thread DJ Delorie
> However, I have a counter-proposal, which is that we use libiberty's > existing buildargv. I wasn't specifying DJGPP's exact code, mostly these features: 1. Recursion. @file inside another @file causes further expansion. 2. Support for "find -print0" which is more robust than whitespace-d

Re: 4.2 Project: "@file" support

2005-08-26 Thread Mark Mitchell
DJ Delorie wrote: However, I don't see a way to do that for *all* OSs, and people seem to want that. So while I won't actively support it in libiberty, I won't hinder it either. Great! To make it as unobtrusive as possible, I request that the application-side only require one line:

Re: 4.2 Project: "@file" support

2005-08-26 Thread Russ Allbery
DJ Delorie <[EMAIL PROTECTED]> writes: >> gcc -c ./@foop.cpp >> >> and of course the same goes for files with names that begin with '-'. > That only works if the argument reflects a file name, and not some other > syntactical sugar. Granted, gcc has no such arguments, but libiberty > has a wide

Re: Cross Compiler Unix - Windows

2005-08-26 Thread Nix
On 26 Aug 2005, Kai Ruottu complained: >Not even mentioning Linux and its GCC idea: "There can > be only one!", seemingly borrowed from the "Highlander" -- that all the > GCCs on a host system should use a common $prefix has seemingly been > totally unknown by the Linux people and t

Re: 206 GCC HEAD regressions, 196 new, with your patch on 2005-08-23T19:50:19Z.

2005-08-26 Thread Richard Henderson
On Fri, Aug 26, 2005 at 05:03:08PM +0100, Joern RENNECKE wrote: > On the other hand, tree.c uses char_type_node as the type of the > smallest addressable > unit: > > tree.c:489 make_node_stat >case tcc_type: > TYPE_UID (t) = next_type_uid++; > TYPE_ALIGN (t) = char_type_node ? TYPE_

Re: 4.2 Project: "@file" support

2005-08-26 Thread Scott Robert Ladd
Tristan Wibberley wrote: I certainly agree with (a). For (b), I think a gcc compiler that is intended to produce normal Windows binaries should have the same commandline interface as Microsoft's compiler (I mean *all* of the commandline interface) - for build scripts and development environments

Re: 4.2 Project: "@file" support

2005-08-26 Thread Tristan Wibberley
Mark Mitchell wrote: > Tristan Wibberley wrote: > >> Mark Mitchell wrote: >> >> >> >>> However, there's demonstrable interest in this feature for GNU/Linux as >>> well, from the lists, and for Java on all operating systems. >>> >> >> >> Please don't use '@filename' on Linux, use a normal switch wi

Re: ia32: clearing a 7116 bytes struct inserted as "C.171.8759: .zero 7116 ... memcpy()" with gcc-4.0.2

2005-08-26 Thread James E Wilson
On Fri, 2005-08-26 at 01:46, Etienne Lorrain wrote: > Shall I create a new bug report or re-open: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21626 > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21478 That's a different bug, in the gimplifier. This one is in the middle-end in expand_expr. I'd

Re: 4.2 Project: "@file" support

2005-08-26 Thread Laurent GUERBY
On Fri, 2005-08-26 at 10:21 -0700, Ian Lance Taylor wrote: > Sergei Organov <[EMAIL PROTECTED]> writes: > > > Anyway, my gcc docs only mention: > > > > --target-help > > --help > > --version > > --param NAME=VALUE > > Yeah, it looks like the double dash long options got added without > ever bein

Re: 4.2 Project: "@file" support

2005-08-26 Thread Ian Lance Taylor
Sergei Organov <[EMAIL PROTECTED]> writes: > Anyway, my gcc docs only mention: > > --target-help > --help > --version > --param NAME=VALUE Yeah, it looks like the double dash long options got added without ever being documented. For the record, they were added here: Sat Mar 6 15:08:59 1993 R

Re: 4.2 Project: "@file" support

2005-08-26 Thread Sergei Organov
Ian Lance Taylor writes: > Sergei Organov <[EMAIL PROTECTED]> writes: > > > Laurent GUERBY <[EMAIL PROTECTED]> writes: > > > If we add a library function to handle this we might want to > > > add a GNU-style argument equivalent like > > > > > > gcc --arguments-from-file=file > > > > AFAIK gcc

RE: Cross Compiler Unix - Windows

2005-08-26 Thread Dave Korn
Original Message >From: Mike Stump >Sent: 26 August 2005 17:48 > On Friday, August 26, 2005, at 12:59 AM, Kai Ruottu wrote: >> Is there any sane reasons for this on systems which never have had that >> non-GNU native 'cc' ? > > Consistency. This is only bad if one abhors consistency and

Re: 4.2 Project: "@file" support

2005-08-26 Thread Ian Lance Taylor
Sergei Organov <[EMAIL PROTECTED]> writes: > Laurent GUERBY <[EMAIL PROTECTED]> writes: > > If we add a library function to handle this we might want to > > add a GNU-style argument equivalent like > > > > gcc --arguments-from-file=file > > AFAIK gcc doesn't support any GNU-style arguments, isn'

Re: Cross Compiler Unix - Windows

2005-08-26 Thread Mike Stump
On Friday, August 26, 2005, at 12:59 AM, Kai Ruottu wrote: Is there any sane reasons for this on systems which never have had that non-GNU native 'cc' ? Consistency. This is only bad if one abhors consistency and predicability. No? I'll abstain from answering the other questions, I think

java type layout (Was: Re: 206 GCC HEAD regressions, 196 new, with your patch on 2005-08-23T19:50:19Z.)

2005-08-26 Thread Joern RENNECKE
Joern RENNECKE wrote: java uses char_type_node for its character type, which is 16 bits. gcc/java/decl.c:747 java_init_decl_processing: TYPE_PRECISION (char_type_node) = 16; On the other hand, tree.c uses char_type_node as the type of the smallest addressable unit: tree.c:489 make_node_st

Re: 206 GCC HEAD regressions, 196 new, with your patch on 2005-08-23T19:50:19Z.

2005-08-26 Thread Joern RENNECKE
Joern Rennecke wrote: I've started a make check-target-libjava yesterday, in the hope that this would give me a handle on things, but it's still not finished after 22 hours. It's still not finished, but in the meantime I modifed the code to abort in the case where the old code would redu

Re: 4.2 Project: "@file" support

2005-08-26 Thread Sergei Organov
Laurent GUERBY <[EMAIL PROTECTED]> writes: > If we add a library function to handle this we might want to > add a GNU-style argument equivalent like > > gcc --arguments-from-file=file AFAIK gcc doesn't support any GNU-style arguments, isn't it? I'd consider gcc @file gcc -@ file gcc -args-from-

Re: PCH / ObjC issue with gcc 4.0.2-pre

2005-08-26 Thread Andrew Pinski
On Aug 26, 2005, at 10:16 AM, Helge Hess wrote: Hi, I'm experiencing some issue with using a precompiled header with an Objective-C file. When including the header, I'll get duplicate symbols, like this: ---snip--- SaxAttributeList.m:188: error: redefinition of 'struct _objc_symtab' SaxAttr

PCH / ObjC issue with gcc 4.0.2-pre

2005-08-26 Thread Helge Hess
Hi, I'm experiencing some issue with using a precompiled header with an Objective-C file. When including the header, I'll get duplicate symbols, like this: ---snip--- SaxAttributeList.m:188: error: redefinition of 'struct _objc_symtab' SaxAttributeList.m:188: error: redefinition of 'struct _ob

Re: 4.2 Project: "@file" support

2005-08-26 Thread DJ Delorie
> Unless the @file contains a file that begins with a '\@' that got passed > on to gcc, presumably. I guess that would mean that you'd need to do > some complicated quoting to actually pass a file beginning with '@' to > gcc. That's why DJGPP silently ignores @files that don't correspond to file

gcc-4.1-20050826 is now available

2005-08-26 Thread gccadmin
Snapshot gcc-4.1-20050826 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-20050826/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.1 CVS branch with the following options: -D2005-08-26 10:43 UTC You'll

RE: How do I disable classes of test?

2005-08-26 Thread Dave Korn
Original Message >From: Daniel Towner >Sent: 26 August 2005 11:48 > Hi all, > > I am hoping to contribute a new port to gcc in the near future and I am > currently testing the port using the testsuite. My new port is for a > 16-bit embedded processor which doesn't support any conventional

How do I disable classes of test?

2005-08-26 Thread Daniel Towner
Hi all, I am hoping to contribute a new port to gcc in the near future and I am currently testing the port using the testsuite. My new port is for a 16-bit embedded processor which doesn't support any conventional IO (printf, etc.), nor does it support floating point. Is there an easy way to

Re: 4.2 Project: "@file" support

2005-08-26 Thread Laurent GUERBY
If we add a library function to handle this we might want to add a GNU-style argument equivalent like gcc --arguments-from-file=file Which would be equivalent to: gcc @file May be some GNU tools already have standardized on a long argument name for such a feature, but none came to my mind (and

Re: Cross Compiler Unix - Windows

2005-08-26 Thread Ranjit Mathew
Ivan Novick wrote: > Can you recommend a solution for compiling Windows DLLs on any > variation of UNIX? You can use GCC/MinGW built as a cross-compiler to do this. If you do not mind a shameless plug, read: http://ranjitmathew.hostingzero.com/phartz/gcj/bldgcj.html HTH, Ranjit. -- Ranjit

Re: ia32: clearing a 7116 bytes struct inserted as "C.171.8759: .zero 7116 ... memcpy()" with gcc-4.0.2

2005-08-26 Thread Etienne Lorrain
Thanks James, Shall I create a new bug report or re-open: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21626 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21478 Etienne. --- James E Wilson <[EMAIL PROTECTED]> wrote: > Etienne Lorrain wrote: > > Investigated again a big increase of size goin

Re: Cross Compiler Unix - Windows

2005-08-26 Thread Kai Ruottu
Mike Stump wrote: configure --with-headers=/cygwin/usr/include --with-libs=/cygwin/usr/ lib target=i386-pc-cygwin && make && make install would be an example of how I used to build one up, see the gcc documentation for details. --with-sysroot or some such might be another way to to do it