Build Failure for gcc-4.3-20071109

2007-11-15 Thread Tom Browder
I have been unable to build recent gcc versions on my i386 (AMD 64x2) running Fedora 7 although I have no problems building them on other, similar hosts running F7 and older Fedora releases and on both Intel and AMD machines. I have suspected my environment because I have noticed for the first tim

Re: internal compiler error when build toolchains using gcc 4.1.2

2007-11-15 Thread Clemens Koller
马骅 wrote: I thought it may be a bug for gcc 4.1.2. Please don't top-post. On Nov 15, 2007 11:11 AM, Tim Prince <[EMAIL PROTECTED]> wrote: 马骅 wrote: hi, I try to build toolchains using buildroot. but when compile the busybox, an internel compiler error show. If you have questions about th

Re: [RFC][modulo-sched] Fix scheduling order within a cycle

2007-11-15 Thread Ayal Zaks
Revital1 Eres/Haifa/IBM wrote on 14/11/2007 18:46:14: > > > > > When scheduling insn 58, we calculate a window of possible cycles according > > to already scheduled predecessors and successors. This window looks like a > > parallelogram in general rather than a rectangle: in the first cycle there

Re: undocumented optimization options

2007-11-15 Thread Razya Ladelsky
Ian Lance Taylor <[EMAIL PROTECTED]> wrote on 13/11/2007 20:11:35: > Razya Ladelsky <[EMAIL PROTECTED]> writes: > > > This patch adds documentation for fipa-cp and -fipa-matrix-reorg. > > > > 2007-11-12 Razya Ladelsky <[EMAIL PROTECTED]> > > > > * doc/invoke.texi (fipa-cp, fipa-matrix-reor

Handling overloaded template functions with variadic parameters

2007-11-15 Thread Rob Quill
Hi, I am trying to fix this bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33962 The problem seems to that more_specialized_fn() doesn't seem to know how to cope with deciding whether which function is more specialised from two variadic functions. I have narrowed the problem down to more_spec

Re: Using crlibm as the default math library in GCC sources

2007-11-15 Thread Christoph Quirin Lauter
Hello, It's time for CRLibm developpers to step in this discussion. We confirm that CRLibm is as fast as other portable libraries, or faster, and that it keeps improving (some benchmarks below). When we are slower, it is because we wanted cleaner code or smaller tables or we tuned the code on

Re: How to let GCC produce flat assembly

2007-11-15 Thread Joe Buck
On Thu, Nov 15, 2007 at 06:41:17AM -0800, Li Wang wrote: > I wonder how to let GCC produce flat assembly, say, just like the .com > file under the DOS, without function calls and complicate executable > file headers, only instructions. How to modify the machine description > file to achieve that? T

Re: Progress on GCC plugins ?

2007-11-15 Thread Diego Novillo
Joe Buck wrote: On Wed, Nov 07, 2007 at 09:20:21AM +0100, Emmanuel Fleury wrote: Is there any progress in the gcc-plugin project ? Non-technical holdups. RMS is worried that this will make it too easy to integrate proprietary code directly with GCC. I don't believe this is a strong argument

Re: Progress on GCC plugins ?

2007-11-15 Thread Richard Kenner
> I don't believe this is a strong argument. My contention is, and has > always been, that GCC is _already_ trivial to integrate into a > proprietary compiler. There is at least one compiler I know that does this. I believe that any such compiler would violate the GPL. But I also believe it's

Re: Progress on GCC plugins ?

2007-11-15 Thread Joe Buck
On Thu, Nov 15, 2007 at 02:34:38PM -0500, Diego Novillo wrote: > Joe Buck wrote: > >On Wed, Nov 07, 2007 at 09:20:21AM +0100, Emmanuel Fleury wrote: > >>Is there any progress in the gcc-plugin project ? > > > >Non-technical holdups. RMS is worried that this will make it too easy > >to integrate pr

bootstrap failure with rev 130208

2007-11-15 Thread Thomas Koenig
This is on i686-pc-linux-gnu: $ ../../gcc/trunk/configure --prefix=$HOME --enable-languages=c,fortran --enable-maintainer-mode && make bootstrap ... build/genmodes -h > tmp-modes.h /bin/sh: build/genmodes: No such file or directory make[3]: *** [s-modes-h] Error 127 make[3]: Leaving directory `/

Re: Progress on GCC plugins ?

2007-11-15 Thread Ian Lance Taylor
[EMAIL PROTECTED] (Richard Kenner) writes: > > I don't believe this is a strong argument. My contention is, and has > > always been, that GCC is _already_ trivial to integrate into a > > proprietary compiler. There is at least one compiler I know that does this. > > I believe that any such co

Re: Progress on GCC plugins ?

2007-11-15 Thread Diego Novillo
Richard Kenner wrote: Therefore, I think it's important for us to make it as technically hard as possible for people to do such a linkage by readin and writing tree or communicating as different libraries or DLLs. I'm very much against any sort of "plug in" precisely for this reason. That's t

Re: Progress on GCC plugins ?

2007-11-15 Thread Richard Kenner
> In fact, it's easy. You have to write some code to translate from > tree to your proprietary IR, and then you have to plug that code > into passes.c. Well first of all, that code becomes GPL so the IR isn't truely "proprietary". > So this seems to me to be a very weak argument against plugins.

Re: Progress on GCC plugins ?

2007-11-15 Thread Diego Novillo
Richard Kenner wrote: No, not in that case, but I don't see that as the only case. Another case would be somebody who wanted to keep an optimizer proprietary by making it a plug-in. My view is that because of the linkage with the GCC IR, it can't be proprietary in that case, but that's the har

Re: Progress on GCC plugins ?

2007-11-15 Thread Benjamin Smedberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard Kenner wrote: >> I think it's quite important for gcc's long-term health to permit and >> even encourage academic researchers and students to use it. And I see >> plugins as directly supporting that goal. > > I don't see that. Why is it t

Re: Progress on GCC plugins ?

2007-11-15 Thread Richard Kenner
> Limited time and steep learning curves. Typically, researchers are > interested in rapid-prototyping to keep the paper mill going. Plug-ins > offers a simple method for avoiding the latencies of repeated bootstrap > cycles. I don't follow. If you're developing an optimizer, you need to do

[LTO] LTO breaks if debug info is stripped from object files

2007-11-15 Thread William Maddox
It appears that portions of the LTO information are emitted in the usual debugging sections, rather, information that would already be present there is shared. This is great for reducing the size of object files that contain both LTO info and debugging info, but means that LTO breaks if 'strip --s

Re: Progress on GCC plugins ?

2007-11-15 Thread Diego Novillo
Richard Kenner wrote: I don't follow. If you're developing an optimizer, you need to do the bootstrap to test the optimizer no matter how it connects to the rest of the compiler. All you save is that you do a smaller link, but that time is measured in seconds on modern machines. No, you don'

Re: Progress on GCC plugins ?

2007-11-15 Thread Ian Lance Taylor
[EMAIL PROTECTED] (Richard Kenner) writes: > > In fact, it's easy. You have to write some code to translate from > > tree to your proprietary IR, and then you have to plug that code > > into passes.c. > > Well first of all, that code becomes GPL so the IR isn't truely "proprietary". I'm with yo

Re: Progress on GCC plugins ?

2007-11-15 Thread Emmanuel Fleury
Ian Lance Taylor wrote: > > I think it's quite important for gcc's long-term health to permit and > even encourage academic researchers and students to use it. And I see > plugins as directly supporting that goal. Note that I don't see any > problem with requiring (or attempting to require) that

Re: Attributes on structs

2007-11-15 Thread Mark Mitchell
Jason Merrill wrote: > may_alias and target attributes are the problematic case. Most of these > just get added to the TYPE_ATTRIBUTES list, and > build_type_attribute_qual_variant creates a new TYPE_MAIN_VARIANT > without copying the fields, which is why things break. > > A simple solution migh

own target: combine emits invalid RTL

2007-11-15 Thread Michael_fogel
Hi There is again a problem i con not solve by my own. I tried to compile LwIP and discovered following error. tcp_in.c:1133: internal compiler error: in gen_reg_rtx, at emit-rtl.c:771 Please submit a full bug report, A full output of all passes showed, that combine seems to make invalid combina

Re: Progress on GCC plugins ?

2007-11-15 Thread Richard Kenner
> If a third party is willing to violate the GPL, the presence of a > plug-in infrastructure will _not_ make their job significantly easier. The issue isn't the ease in which it violates the GPL, but the ease in which you can show it *is* a violation! If there's no plug-in and you link directly

Re: own target: combine emits invalid RTL

2007-11-15 Thread Jim Wilson
Michael_fogel wrote: (ior:SI (subreg:SI (mem/s:QI (reg/f:SI 1250) [0 .flags+0 S1 A32]) 0) See register_operand and general_operand in recog.c. (SUBREG (MEM)) is accepted by register_operand if INSN_SCHEDULING is not defined, for historical reasons. This is something that should be f

Re: Progress on GCC plugins ?

2007-11-15 Thread Richard Kenner
> > I don't follow. If you're developing an optimizer, you need to do the > > bootstrap to test the optimizer no matter how it connects to the rest > > of the compiler. All you save is that you do a smaller link, but that > > time is measured in seconds on modern machines. > > No, you don't. Al

Re: How to let GCC produce flat assembly

2007-11-15 Thread Li Wang
Hi, I may need explain this problem more clearly.For a backend which runs as coprocessor to a host processor, such as GPU, which incoporates large numbers of ALUS and processes only arithmetic operations and some other simple operations, runs in VLIW pattern to accelerate the host processor. Say, t

Re: Build Failure for gcc-4.3-20071109

2007-11-15 Thread Jim Wilson
Tom Browder wrote: Attached is a log of my build attempt (and the config.log). There is a config.log file in every directory that gets configured. It looks like you attached the one from the top-level dir which is not where the problem is occurring. The "make -j3" makes the output hard to

Re: Progress on GCC plugins ?

2007-11-15 Thread Ian Lance Taylor
Andrew Haley <[EMAIL PROTECTED]> writes: > > We can make it as technically hard as possible, but it's way too late > > to make it technically hard. In fact, it's easy. You have to write > > some code to translate from tree to your proprietary IR, and then you > > have to plug that code into

Re: Progress on GCC plugins ?

2007-11-15 Thread Andrew Haley
Ian Lance Taylor writes: > [EMAIL PROTECTED] (Richard Kenner) writes: > > > > I don't believe this is a strong argument. My contention is, > > > and has always been, that GCC is _already_ trivial to integrate > > > into a proprietary compiler. There is at least one compiler I > > > know th

Re: Progress on GCC plugins ?

2007-11-15 Thread Ian Lance Taylor
[EMAIL PROTECTED] (Richard Kenner) writes: > > Limited time and steep learning curves. Typically, researchers are > > interested in rapid-prototyping to keep the paper mill going. Plug-ins > > offers a simple method for avoiding the latencies of repeated bootstrap > > cycles. > > I don't fol

Re: Build Failure for gcc-4.3-20071109

2007-11-15 Thread Tom Browder
On Nov 15, 2007 6:24 PM, Jim Wilson <[EMAIL PROTECTED]> wrote: > Tom Browder wrote: > > Attached is a log of my build attempt (and the config.log). ... > These lines in the output are suspect: > /bin/sh: /usr/bin/true: Success > I don't have a /usr/bin/true on my F7 machines. There is a /bin/true.

Re: Progress on GCC plugins ?

2007-11-15 Thread Diego Novillo
Richard Kenner wrote: No, I mean for *testing* you need to do a bootstrap. I'm not talking about the minimum actually needed to build. Nope, you don't. If you are doing static analysis, for instance, you don't care nor need to bootstrap GCC. You just need to load your module every time a

Re: How to let GCC produce flat assembly

2007-11-15 Thread Jim Wilson
Li Wang wrote: and execute it. If I want to let GCC produce assembly for it, how should I code the machine description file? Should I first let cc1 produce a elf assembly for it, and then let binutils trunate it to a flat assembly? It seems ugly hacking. Thanks. I don't know what a .com file is

Re: How to let GCC produce flat assembly

2007-11-15 Thread Joe Buck
On Thu, Nov 15, 2007 at 04:20:49PM -0800, Li Wang wrote: > I may need explain this problem more clearly. Yes, my earlier message directing you to gcc-help was because I thought you didn't grasp what the compiler should do and what the linker should do; sorry about that. > For a backend which runs

How to let GCC produce flat assembly

2007-11-15 Thread Li Wang
Hi, I wonder how to let GCC produce flat assembly, say, just like the .com file under the DOS, without function calls and complicate executable file headers, only instructions. How to modify the machine description file to achieve that? Thanks in advance. Regards, Li Wang

Re: bootstrap failure with rev 130208

2007-11-15 Thread Jim Wilson
Thomas Koenig wrote: build/genmodes -h > tmp-modes.h /bin/sh: build/genmodes: No such file or directory Does the file build/genmodes exist? If the file isn't there, then you need to figure out what happened to it. If the file is there, then this might mean that the interpreter for the binary

Modulo operation in C for -ve values

2007-11-15 Thread Deepak Gaur
Subject: Modulo operation in C for -ve values The Modulo operation as specified in http://xenia.media.mit.edu/~bdenckla/thesis/texts/htthe/node13.html says that for a fraction like n/k which can be expressed as n/k = i + j/k the C division and mod operation should yeild n div k = i (integer part)

Re: Modulo operation in C for -ve values

2007-11-15 Thread Alan Modra
On Fri, Nov 16, 2007 at 09:27:22AM +0530, Deepak Gaur wrote: > The Modulo operation as specified in > http://xenia.media.mit.edu/~bdenckla/thesis/texts/htthe/node13.html This is not the C % operator. google "ISO/IEC 9899:1999" for a clue. -- Alan Modra Australia Development Lab, IBM

Re: How to let GCC produce flat assembly

2007-11-15 Thread Li Wang
Hi, Thanks for your attention and response. I think I am still not very accurate to describe what I want to do. I am too anxious to explain far from clearly. Now permit me use a simple example, for the simple C program below, compiled by cc1 targetting to x86 platform, the assembly is as fo

Help understanding overloaded templates

2007-11-15 Thread Rob Quill
Hi, I was wondering if anyone could help me make sense of the more_specialized_fn() function in pt.c (line 13281). Specifically, I am trying to understand what each of the are: tree decl1 = DECL_TEMPLATE_RESULT (pat1); tree targs1 = make_tree_vec (DECL_NTPARMS (pat1)); tree tparms1 = DECL_