Re: Name of files and functions etc.

2005-03-29 Thread David Pettersson
Thanks for all the answers! Usually the hardest part of programming is finding the right names for things, but good names cant be replaced by any amount of documentation. By the way, how much changes should a patch contain in this case? As I understand the guidlines there should be one significa

PCH and moving gcc binaries after installation

2005-03-29 Thread Dan Kegel
Moving an installed gcc/glibc crosstoolchain to a different directory was not allowed for gcc-2.96 and below, I seem to recall, but became permissible around gcc-3.0. (Sure, there are still embedded paths, but they don't seem to be used in practice. I don't really trust it, but that's what I observ

Re: [m68k]: Trouble trying to figure out LEGITIMIZE_RELOAD_ADDRESS

2005-03-29 Thread Peter Barada
>Peter Barada wrote: >> I'd like to make the reload look like: >> (set (reg:SI y) (plus:SI (reg_SI 16) (const_int 32832))) >> (set (reg:DF x) (mem:DF (reg:SI y))) > >Reload already knows how to make this transformation, so it should not >be necessary to resort to LEGITIMIZE_RELOAD_ADDRESS. This

Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel

2005-03-29 Thread Denis Vlasenko
On Wednesday 30 March 2005 05:27, Gerold Jury wrote: > > >> On Tue, Mar 29, 2005 at 05:37:06PM +0300, Denis Vlasenko wrote: > >> > /* > >> > * This looks horribly ugly, but the compiler can optimize it totally, > >> > * as the count is constant. > >> > */ > >> > static inline void * __constant_

successful GCC build

2005-03-29 Thread Taso N. Devetzis
sparc-sun-solaris2.9 Reading specs from /opt/gnu/lib/gcc/sparc-sun-solaris2.9/3.4.3/specs Configured with: ../configure --prefix=/opt/gnu Thread model: posix gcc version 3.4.3 SunOS x 5.9 Generic_118558-03 sun4u sparc SUNW,UltraAX-i2

Re: A plan for eliminating cc0

2005-03-29 Thread Hans-Peter Nilsson
> From: Ian Lance Taylor > Date: 29 Mar 2005 23:05:11 -0500 > Hans-Peter Nilsson <[EMAIL PROTECTED]> writes: > What am I missing? If anything, to post an updated proposal spelling out the bits below! (I.e. nothing as long as there is always a matching automatically generated insn; one with an a

Re: A plan for eliminating cc0

2005-03-29 Thread Ian Lance Taylor
Hans-Peter Nilsson <[EMAIL PROTECTED]> writes: > > 4) For each target which uses cc0: > ... > >4b) For insn patterns for which some alternatives clobber CC and > >some do not, split the instruction after reload into one > >variant which clobbers the CC and one variant which doe

Re: A plan for eliminating cc0

2005-03-29 Thread Hans-Peter Nilsson
I'm behind on reading mailing lists and only "skipped ahead" for this thread. (I may have missed some related follow-ups.) > From: Ian Lance Taylor > Date: 24 Mar 2005 11:44:52 -0500 > 1) Modify the programs which read the .md file to look for an >attribute named clobbercc. If such an attr

Re: gcc-3.3.3 ppc e500 - Abort of uic from Qt

2005-03-29 Thread James E Wilson
Clemens Koller wrote: /[..]/qt-x11-free-3.3.4/bin/uic -L /[..]/qt-x11-free-3.3.4/plugins -embed designercore [lots of images/*.png's] -o qmake_image_collection.cpp make: *** [qmake_image_collection.cpp] Aborted make: *** Deleting file `qmake_image_collection.cpp' uic is dumping core. We can't real

Re: [m68k]: Trouble trying to figure out LEGITIMIZE_RELOAD_ADDRESS

2005-03-29 Thread James E Wilson
Peter Barada wrote: I'd like to make the reload look like: (set (reg:SI y) (plus:SI (reg_SI 16) (const_int 32832))) (set (reg:DF x) (mem:DF (reg:SI y))) Reload already knows how to make this transformation, so it should not be necessary to resort to LEGITIMIZE_RELOAD_ADDRESS. This is only needed

Re: PR 20505

2005-03-29 Thread James E Wilson
Nathan Sidwell wrote: Bug 20505 is an ICE with -ggdb2. We have the following member definition, const int b::d = ((int)(&((b*)1)->c) - 1); whose initializer used to be folded during construction to an INT_CST, but now it doesn't -- fold cannot fold the complete expression. As My inclination is

Successful bootstrap/install of current gcc 4.0 and 4.1 snapshots on OpenDarwin 7.2.1/x86 using the latest odcctools

2005-03-29 Thread Lars Sonchocky-Helldorf
The system: === uname -a Darwin localhost 7.2.1 Darwin Kernel Version 7.2.1: Wed Jul 14 03:00:02 PDT 2004; root:tmp/xnu-7.2.1-1-root.obj/RELEASE_I386 x86 i386 gcc -v Reading specs from /usr/libexec/gcc/darwin/i386/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc.

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Daniel Berlin
On Tue, 2005-03-29 at 14:52 -0800, Joe Buck wrote: > Daniel Berlin wrote: > > >IE if we added a very large warning to the submission page that said > > >"PLEASE NOTE: BY SUBMITTING A TESTCASE, YOU AGREE THAT WE HAVE THE RIGHT > > >TO CREATE, USE, AND PUBLISH EITHER YOUR VERBATIM TESTCASE OR A > > >

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Robert Dewar
Joe Buck wrote: Daniel Berlin wrote: IE if we added a very large warning to the submission page that said "PLEASE NOTE: BY SUBMITTING A TESTCASE, YOU AGREE THAT WE HAVE THE RIGHT TO CREATE, USE, AND PUBLISH EITHER YOUR VERBATIM TESTCASE OR A DERIVATIVE UNDER GCC'S CURRENT LICENSE" or something of t

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Joe Buck
Daniel Berlin wrote: > >IE if we added a very large warning to the submission page that said > >"PLEASE NOTE: BY SUBMITTING A TESTCASE, YOU AGREE THAT WE HAVE THE RIGHT > >TO CREATE, USE, AND PUBLISH EITHER YOUR VERBATIM TESTCASE OR A > >DERIVATIVE UNDER GCC'S CURRENT LICENSE" > >or something of t

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Robert Dewar
Robert Dewar wrote: Daniel Berlin wrote: IE if we added a very large warning to the submission page that said "PLEASE NOTE: BY SUBMITTING A TESTCASE, YOU AGREE THAT WE HAVE THE RIGHT TO CREATE, USE, AND PUBLISH EITHER YOUR VERBATIM TESTCASE OR A DERIVATIVE UNDER GCC'S CURRENT LICENSE" or something

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Robert Dewar
Daniel Berlin wrote: IE if we added a very large warning to the submission page that said "PLEASE NOTE: BY SUBMITTING A TESTCASE, YOU AGREE THAT WE HAVE THE RIGHT TO CREATE, USE, AND PUBLISH EITHER YOUR VERBATIM TESTCASE OR A DERIVATIVE UNDER GCC'S CURRENT LICENSE" or something of the sort, they wo

Re: [PATCH] fix i386 memcpy

2005-03-29 Thread Denis Vlasenko
On Tuesday 29 March 2005 23:22, Denis Vlasenko wrote: > This patch shortens non-constant memcpy() by two bytes > and fixes spurious out-of-line constant memcpy(). > > Patch is run-tested (I run on patched kernel right now). > > Benchmark and code generation test program will be mailed as reply. /

[PATCH] fix i386 memcpy

2005-03-29 Thread Denis Vlasenko
This patch shortens non-constant memcpy() by two bytes and fixes spurious out-of-line constant memcpy(). Patch is run-tested (I run on patched kernel right now). Benchmark and code generation test program will be mailed as reply. # size vmlinux.org vmlinux textdata bss dec hex

Re: Name of files and functions etc.

2005-03-29 Thread Joe Buck
On Tue, Mar 29, 2005 at 08:24:23PM +0100, Andrew Haley wrote: > Tom Tromey writes: > > As for pure cleanups like rearranging files... I'm not super > > interested in this, but I think we ought to consider such patches on > > their own merits, just as we would at any other time. > > Yes, that's

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Mike Stump
On Mar 29, 2005, at 7:06 AM, Daniel Berlin wrote: They are going to have to show that they had on idea this would happen, which is somewhat difficult. IE if we added a very large warning to the submission page that said "PLEASE NOTE: BY SUBMITTING A TESTCASE I suspect we could put a description

Re: Name of files and functions etc.

2005-03-29 Thread Andrew Haley
Tom Tromey writes: > > "Andrew" == Andrew Pinski <[EMAIL PROTECTED]> writes: > > >> I jumped on one of the newbe gcc hackers quests described at > >> http://gcc.gnu.org/projects/#beginner_gcc_hackers . > >> More precisely I started to clean up the long actions in > >> gcc/java/parse.y.

Re: Name of files and functions etc.

2005-03-29 Thread Tom Tromey
> "David" == David Pettersson <[EMAIL PROTECTED]> writes: David> Currently I have placed the factor out functions in a files named David> parse_factor.c (and .h). I feel this is a somewhat bad name, David> is there any rule for file naming in use at gcc. There is no rule I know of other than

Re: Name of files and functions etc.

2005-03-29 Thread Tom Tromey
> "Andrew" == Andrew Pinski <[EMAIL PROTECTED]> writes: >> I jumped on one of the newbe gcc hackers quests described at >> http://gcc.gnu.org/projects/#beginner_gcc_hackers . >> More precisely I started to clean up the long actions in >> gcc/java/parse.y. Happy that the thing still compiled

Re: Name of files and functions etc.

2005-03-29 Thread Zack Weinberg
Tom Tromey <[EMAIL PROTECTED]> writes: > David> Currently I have placed the factor out functions in a files named > David> parse_factor.c (and .h). I feel this is a somewhat bad name, > David> is there any rule for file naming in use at gcc. > > There is no rule I know of other than "whatever the

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-29 Thread Eric Christopher
On Tue, 2005-03-29 at 11:08 +0200, Mile Davidovic wrote: > Hell all > But where I have to look? > I could easily change libstdc++v3 -> Makefile.am (AM_MAKEFLAGS) and > regenerate all but I am not shure is it good way to do it. For mips-elf you'll want to look in gcc/config/mips/t-elf. gcc/config

Re: combine.c

2005-03-29 Thread Ian Lance Taylor
Rajkishore Barik <[EMAIL PROTECTED]> writes: > Can someone tell me why are the "REG_VALUE_PROFILE" notes > dropped in "combine.c"? I am using these notes to carry some values to > back-end (reg-alloc) > and it seems to get lost somewhere. "combine.c" looked to me as the > potential place. When

combine.c

2005-03-29 Thread Rajkishore Barik
Can someone tell me why are the "REG_VALUE_PROFILE" notes dropped in "combine.c"? I am using these notes to carry some values to back-end (reg-alloc) and it seems to get lost somewhere. "combine.c" looked to me as the potential place. --Raj

Re: A plan for eliminating cc0

2005-03-29 Thread Paul Schlie
> From: Paul Koning <[EMAIL PROTECTED]> >> "tm" == tm gccmail <[EMAIL PROTECTED]> writes: >>> On 25 Mar 2005, Ian Lance Taylor wrote: >>> Safe but very costly. It assumes that every processor has a cheap >>> way to save and restore the condition codes in user mode, which is >>> not necessarily the

Re: Merging calls to `abort'

2005-03-29 Thread Marc Espie
On Tue, Mar 29, 2005 at 09:27:32AM -0800, Joe Buck wrote: > Or are you just way behind in your reading? Way behind. I've read the discussion, I've seen nothing looking like my argument, so I posted my reply.

Re: Merging calls to `abort'

2005-03-29 Thread Joe Buck
RMS wrote: > >GCC's primary purpose is to be the compiler for the GNU system. It is > >used for many other purposes too, and it is good for GCC to serve more > >purposes, but they're not as important for the GNU Project, even > >though they are all important for some users. On Tue, Mar 29, 2005

Re: Gcc help

2005-03-29 Thread Eljay Love-Jensen
Hi Andre, Prebuilt GCC is available (downloadable) through Apple's Developer Tools. http://developer.apple.com/tools/xcode/index.html HTH, --Eljay

Re: A plan for eliminating cc0

2005-03-29 Thread Paul Koning
> "tm" == tm gccmail <[EMAIL PROTECTED]> writes: tm> On 25 Mar 2005, Ian Lance Taylor wrote: >> Safe but very costly. It assumes that every processor has a cheap >> way to save and restore the condition codes in user mode, which is >> not necessarily the case. And it assumes that the sav

Gcc help

2005-03-29 Thread andre
>>>/*please forward to appropriate people, I tried [EMAIL PROTECTED] twice and it doesnt work.*/ I have a G3 Powerbook with OS 10.3, and I tried installing GCC on it. I don't really know what I'm doing but I'm following instructions as much as possible. When trying to configure, I got line 2332:

Re: Name of files and functions etc.

2005-03-29 Thread Andrew Pinski
> > Hi! > > This message primerely concernce java but I think the question is of > general interest so I post it here and hope that this is OK. > > I jumped on one of the newbe gcc hackers quests described at > http://gcc.gnu.org/projects/#beginner_gcc_hackers . > More precisely I started to c

Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel

2005-03-29 Thread Andrew Pinski
> > On Tue, Mar 29, 2005 at 05:37:06PM +0300, Denis Vlasenko wrote: > > /* > > * This looks horribly ugly, but the compiler can optimize it totally, > > * as the count is constant. > > */ > > static inline void * __constant_memcpy(void * to, const void * from, size_t > > n) > > { > > i

Name of files and functions etc.

2005-03-29 Thread David Pettersson
Hi! This message primerely concernce java but I think the question is of general interest so I post it here and hope that this is OK. I jumped on one of the newbe gcc hackers quests described at http://gcc.gnu.org/projects/#beginner_gcc_hackers . More precisely I started to clean up the long act

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Daniel Berlin
On Tue, 2005-03-29 at 10:10 -0500, Richard Kenner wrote: > In reality, a person who submits code knowing it is going to be > distilled and used in testsuites under our license would probably be > estopped from claiming it violates their copyright to do so. They are > going to have

Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel

2005-03-29 Thread Jakub Jelinek
On Tue, Mar 29, 2005 at 05:37:06PM +0300, Denis Vlasenko wrote: > typedef unsigned int size_t; > > static inline void * __memcpy(void * to, const void * from, size_t n) > { > int d0, d1, d2; > __asm__ __volatile__( > "rep ; movsl\n\t" > "testb $2,%b4\n\t" > "je 1f\n\t" >

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Richard Kenner
In reality, a person who submits code knowing it is going to be distilled and used in testsuites under our license would probably be estopped from claiming it violates their copyright to do so. They are going to have to show that they had on idea this would happen, which is som

Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel

2005-03-29 Thread Nathan Sidwell
Denis Vlasenko wrote: Disassembly of section .text: e: e8 fc ff ff ff call f f: R_386_PC32 memcpy #define memcpy(t, f, n) \ (__builtin_constant_p(n) ? \ __constant_memcpy((t),(f),(n)) : \ __memcpy((t),(f),(n))) given this #define, how can 'memcpy' appe

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Daniel Berlin
On Tue, 2005-03-29 at 15:50 +0200, Florian Weimer wrote: > * Robert Dewar: > > > Unfortunately, you can't rely on sane judges, since the plaintiff can > > always demand a jury trial, and you would be surprised what juries think. > > Furthermore, deleting the test case makes no sense as a remedy. E

Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel

2005-03-29 Thread Richard Guenther
On Tue, 29 Mar 2005 17:37:06 +0300, Denis Vlasenko <[EMAIL PROTECTED]> wrote: > Try testcase below the sig. > > This causes nearly one thousand calls to memcpy in my kernel > (not an allyesconfig one): > static inline void * __memcpy(void * to, const void * from, size_t n) > { > int d0, d1, d2; >

Re: i want to connect gcc's front-end to my'back-end

2005-03-29 Thread Stefan Strasser
하태준 schrieb: > i want to connect gcc's front-end to my'back-end > > how to connect it? > > first i want to connect gcc's tree IR and my back-end's IR > > but i can't > > then i try to connect gcc's RTL that was made -dr option > > but that is impossible > > so, i try to use gcc 4.0 > > i w

memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel

2005-03-29 Thread Denis Vlasenko
Try testcase below the sig. This causes nearly one thousand calls to memcpy in my kernel (not an allyesconfig one): # objdump -d vmlinux | grep -F '' | wc -l 959 # gcc -O2 -c t.c # objdump -r -d t.o t.o: file format elf32-i386 Disassembly of section .text: : 0: 55

Re: dejagnu help needed - tests get confused by column numbers

2005-03-29 Thread Gerald Pfeifer
On Mon, 28 Mar 2005, Janis Johnson wrote: > There are several workarounds in the GCC testsuite for things that could > be better handled in DejaGnu if the next release of GCC could require a > new DejaGnu version. That might be the right thing to do for GCC 4.1. > Ben Elliston is the DejaGnu maint

Re: Copyright status of example code in Bugzilla - how to deal with when writing testcases.

2005-03-29 Thread Florian Weimer
* Robert Dewar: > Unfortunately, you can't rely on sane judges, since the plaintiff can > always demand a jury trial, and you would be surprised what juries think. > Furthermore, deleting the test case makes no sense as a remedy. Either > there is or there is not a copyright violation. The judge c

Re: Inlining and estimate_num_insns

2005-03-29 Thread Gerald Pfeifer
On Tue, 1 Mar 2005, Steven Bosscher wrote: >>> You still didn't get into the fun part of actually inlining all the >>> inlines in in Gerald's testcase ;) > It got killed on a box with 4GB of RAM after 11 hours and 43 minutes > with "virtual memory exhausted: Cannot allocate memory". In the > lates

i want to connect gcc's front-end to my'back-end

2005-03-29 Thread "하태준"
i want to connect gcc's front-end to my'back-end how to connect it? first i want to connect gcc's tree IR and my back-end's IR but i can't then i try to connect gcc's RTL that was made -dr option but that is impossible so, i try to use gcc 4.0 i want to use gcc's gimple tree (that is gcc's

Re: Merging calls to `abort'

2005-03-29 Thread Marc Espie
In article <[EMAIL PROTECTED]> you write: >GCC's primary purpose is to be the compiler for the GNU system. It is >used for many other purposes too, and it is good for GCC to serve more >purposes, but they're not as important for the GNU Project, even >though they are all important for some users.

Re: Re: Any SMS loop example?

2005-03-29 Thread Mostafa Hagog
"zhongknocken" <[EMAIL PROTECTED]> wrote on 29/03/2005 06:29:54: > I've tried the dot-product loop and some other loops on Itanium machine. The > machine description of the target processor has DFA defined for it. The > function "sms_schedule" is invoked, but no loop is SMS scheduled. You ca

gcc 3.4.2

2005-03-29 Thread Levent Erbuke
Hello all ! My app now crashes when compiled with gcc 3.4.2 (before I used gcc 3.3.5) I read that this could be of ABI issues... Is there a tool that retrieve which version of gcc was used to compile a lib or anything else ? It could be very helpfully to control i.e. libc, the qt lib, etc... Than

RE: Question regarding MIPS_GPREL_16 relocation

2005-03-29 Thread Mile Davidovic
Hell all But where I have to look? I could easily change libstdc++v3 -> Makefile.am (AM_MAKEFLAGS) and regenerate all but I am not shure is it good way to do it. Best regards and thanks a lot. Mile -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Chr

Re: Profile-directed feedback and remote testing

2005-03-29 Thread Nathan Sidwell
Joe Buck wrote: That wouldn't have saved me in the case described above, as the pathnames are already set in the executable. A *runtime* way of altering the locations of the .gcda files would be nice to have. For example, we could have something like GCDA_PATH_PREFIX which, if set, would be prepe

Re: Dumping Low Level Intermediate Representation for Another Compiler

2005-03-29 Thread tm_gccmail
On Mon, 28 Mar 2005, Wei Qin wrote: > Hello GCC developers, > > I am avid user of gcc and have 5 cross-gcc's installed on my machine. > Thanks for your great work. Recently I want to do some compiler work > that involves analyzing low level intermediate representation. I > thought about using re