Re: dead label use?

2005-06-22 Thread Ian Lance Taylor
Mike Stump <[EMAIL PROTECTED]> writes: > Forgive me ignorance, is there is use for the use of the label below? > > From rs6000, though, certainly there are other examples of this sort > of thing in the md files: > > (define_insn "" >[(set (pc) > (match_operand:P 0 "register_operand

Re: Error building 4.0.1-RC2

2005-06-22 Thread Eric Christopher
On Wed, 2005-06-22 at 07:06 -0700, Mark Mitchell wrote: > Eric Christopher wrote: > >> > >>If someone wishes to submit a patch for that bug for 4.0 branch, I expect > >>it could be considered for 4.0.2 but might be too risky for 4.0.1 now. > >> > > > > > > Like so? Tested by building outside th

The Linux binutils 2.16.91.0.1 is released

2005-06-22 Thread H. J. Lu
This is the beta release of binutils 2.16.91.0.1 for Linux, which is based on binutils 2005 0622 in CVS on sources.redhat.com plus various changes. It is purely for Linux. The new i386/x86_64 assemblers no longer accept instructions for moving between a segment register and a 32bit memory location

dead label use?

2005-06-22 Thread Mike Stump
Forgive me ignorance, is there is use for the use of the label below? From rs6000, though, certainly there are other examples of this sort of thing in the md files: (define_insn "" [(set (pc) (match_operand:P 0 "register_operand" "c,*l")) (use (label_ref (match_operand 1 "" "")))]

Re: spec benchmark testing

2005-06-22 Thread Andrew Pinski
On Jun 22, 2005, at 5:36 PM, Virender Kashyap wrote: The above command works for some of the modules (164.zip,256.bzip2,181.mcf,175.vpr,181.mcf)., whereas in others I get compilation errors. Do these modules have dependencies outside the source directory ? If not , what is the right way to co

spec benchmark testing

2005-06-22 Thread Virender Kashyap
Hi I am trying to test gcc-4.0 on c modules in SPEC CPU200 benchmark source using -combine option , which enables optimizations across files (producing one assembly for whole module). I give following command : gcc -combine -S *.c The above command works for some of the modules (164.zip,

Re: CFT: toplevel bootstrap (stage 2 project)

2005-06-22 Thread Geoffrey Keating
I haven't actually tried it, but it looks like the 'compare' rule tries to compare every .o file in all the directories, which will surely cause the same problems with stabs and assembly that is described in: and other related messages.

Re: cpp, CPLUS_INCLUDE_PATH, and g++: bug or feature?

2005-06-22 Thread Joe Buck
On Wed, Jun 22, 2005 at 03:56:02PM -0400, Andrew Pinski wrote: > > On Jun 22, 2005, at 3:47 PM, Gerald Pfeifer wrote: > > >Feature, bug, or potential to improve documentation? > > Feature as g++ changes the .c files to compile with C++ front-end. The reason for this (making the g++ script compi

Re: cpp, CPLUS_INCLUDE_PATH, and g++: bug or feature?

2005-06-22 Thread Gabriel Dos Reis
Gerald Pfeifer <[EMAIL PROTECTED]> writes: | However, once I use the g++ driver to compile this program the error | is back: | | % g++ x.c | x.c:1:18: test.h: No such file or directory | | Which I believe contradicts the following from cppenv.texi, since even | though we use the g++ driver,

Re: cpp, CPLUS_INCLUDE_PATH, and g++: bug or feature?

2005-06-22 Thread Andrew Pinski
On Jun 22, 2005, at 3:47 PM, Gerald Pfeifer wrote: Feature, bug, or potential to improve documentation? Feature as g++ changes the .c files to compile with C++ front-end. -- Pinski

cpp, CPLUS_INCLUDE_PATH, and g++: bug or feature?

2005-06-22 Thread Gerald Pfeifer
Consider the following program, which resides in a directory different from $HOME. Call it test.c, and put an empty test.h into $HOME. #include "test.h" #include int main() { printf("hi"); } If one tries to compile this, GCC issues an error (So far so good): % gcc x.c x.c:1:18: test

Re: What is wrong with Bugzilla?

2005-06-22 Thread Gerald Pfeifer
On Mon, 30 May 2005, Daniel Berlin wrote: > Apparently they estimate the probability of a == x succeeding at 42% > for some reason (This is true at all opts levels, with and without SSE > math). Why this isn't 50%, who knows. Might be related to the Hitchhiker's Guide to the Galaxy? Gerald

Re: gcc template error?

2005-06-22 Thread Shelly Adhikari
Jason Mancini wrote: I suspect this line is the source of your problems: friend T* func(T* p); Y isn't a template parameter here, but a (concrete?) class named "Y". The below compiles with 3.4.3 anyways... Regards, -Jason Yep, that line is the source of my problems. Can you send me a pointer

RE: gcc template error?

2005-06-22 Thread Jason Mancini
I suspect this line is the source of your problems: friend T* func(T* p); Y isn't a template parameter here, but a (concrete?) class named "Y". The below compiles with 3.4.3 anyways... Regards, -Jason // Line 1 class A { public: A() { }; ~A() { }; }; class B { public: B(); B(const A&

Re: How to replace -O1 with corresponding -f's?

2005-06-22 Thread Zack Weinberg
Sergei Organov wrote: > Andrew Haley <[EMAIL PROTECTED]> writes: > > >>Sergei Organov writes: >> > Hi, >> > >> > Using gcc compiled from gcc-4_0-branch, in an attempt to see which >> > particular optimization option makes my test case to be mis-optimized, I >> > try to replace -O1 (which toggles

Re: toplevel bootstrap (stage 2 project)

2005-06-22 Thread Giovanni Bajo
Paolo Bonzini <[EMAIL PROTECTED]> wrote: > To recap, toplevel bootstrap has several aims, including: >[...] I suggest you to add this to the Wiki. > To enable toplevel bootstrap, just configure with --enable-bootstrap. > Then, "make" will do more or less what "make bubblestrap" used to do: What

Re: -floop-optimize2

2005-06-22 Thread Scott Robert Ladd
Zdenek Dvorak wrote: > if you have testcases, I would be definitely interested. I'm preparing for an impromtu business meeting, but I'll put together test cases tonight and post them to Bugzilla. I should have at least two small, well-defined cases. ..Scott

Re: gcc template error?

2005-06-22 Thread Andrew Pinski
On Jun 22, 2005, at 1:56 PM, Shelly Adhikari wrote: Hello Guys, Thw following program is giving an error. Is the program incorrect (If possible, please cite relevant sections from the C++ standard)? Should I file a bug? I don't know if this is valid C++ or not but on the mainline we ICE so

gcc template error?

2005-06-22 Thread Shelly Adhikari
Hello Guys, Thw following program is giving an error. Is the program incorrect (If possible, please cite relevant sections from the C++ standard)? Should I file a bug? % /usr/local/gcc-4.0.0/bin/g++ template.cxx template.cxx: In function 'T* func(T*) [with X = B, Y = A]': template.cxx:36: i

Re: add sourcefiles to gcc

2005-06-22 Thread Rafael Espíndola
On 6/22/05, nico <[EMAIL PROTECTED]> wrote: > Hi, > > if I want to add some source to the gcc, what do I have to do? It depends where do you want to link the file. If is going into a front end for a language other the c then it must go in gcc/ I am not very familiar with the global structure of g

Re: -floop-optimize2

2005-06-22 Thread Zdenek Dvorak
Hello, > I've noticed that -floop-optimize2 tends to be a pessimism on many > algorithms. > > I'm hesitant to file this as a "bug", given that -floop-optimize2 is a > "new" replacement for the older loop optimizer. > > Is -floop-optimize2 still in development, and not ready yet -- or are > the p

Re: Blogging the gcc summit

2005-06-22 Thread Joe Buck
On Wed, Jun 22, 2005 at 03:51:48PM -, [EMAIL PROTECTED] wrote: > Dunno who else is doing it, but I'm trying to do a realtime diary of > the gcc summit for the benefit of those who couldn't come. It's > at http://kegel.com/gcc/summit2005.html > I don't promise that it's legible or useful, but i

RE: Getting the byte offset of a member variable pointer type

2005-06-22 Thread Dave Korn
Original Message >From: Thomas Immich >Sent: 22 June 2005 14:49 > I need to get the exact byte offset of a member variable inside a > class in order to map a member variable pointer type to a concrete > member variable instance. This worked fine until I ported my code to > GCC 4.0, which i

Blogging the gcc summit

2005-06-22 Thread dank
Dunno who else is doing it, but I'm trying to do a realtime diary of the gcc summit for the benefit of those who couldn't come. It's at http://kegel.com/gcc/summit2005.html I don't promise that it's legible or useful, but it might give some of the flavor, at least.

Re: Error building 4.0.1-RC2

2005-06-22 Thread Mark Mitchell
Eric Christopher wrote: If someone wishes to submit a patch for that bug for 4.0 branch, I expect it could be considered for 4.0.2 but might be too risky for 4.0.1 now. Like so? Tested by building outside the source directory and attempting to build in the source directory. Did we want som

Getting the byte offset of a member variable pointer type

2005-06-22 Thread Thomas Immich
Hi all, I need to get the exact byte offset of a member variable inside a class in order to map a member variable pointer type to a concrete member variable instance. This worked fine until I ported my code to GCC 4.0, which is much stricter regarding type casts. Unfortunately I cannot us

CFT: toplevel bootstrap (stage 2 project)

2005-06-22 Thread Paolo Bonzini
So we are ready! Please try this and let me know of any rough spots. I'll be on holiday from Friday 24th to July 4th, with no connectivity, but I will read my e-mail when I come back. To recap, toplevel bootstrap has several aims, including: 1) simplifying the binary compatibility problems wh

add sourcefiles to gcc

2005-06-22 Thread nico
Hi, if I want to add some source to the gcc, what do I have to do? I think the source files have to be in the gcc-subdirectory. Then I have to change the Makefile.in in the same directory ( I didn't found any hint that this file is generated by autogen or automake - so I think it has to be

meet problem when building uCOSII with gcc-h8s ported version

2005-06-22 Thread 唐 垠
hi, all Recently i am doing some work for porting uCOSII to our hardware target platform, it is a MCU with Hitachi H8 series cpu, and the toolchain i used is gnuh8v0501-elf. In the os_cpu.h file, there defines some macroes such as enable/disable interrupt, soft-interrupt, following some