Successfull gcc-3.4.4 build on hppa1.1-hp-hpux10.20

2005-08-03 Thread frankj
[EMAIL PROTECTED] /local/tmp/gcc-3.4.4# ./config.guess hppa1.1-hp-hpux10.20 [EMAIL PROTECTED] /local/tmp/gcc-3.4.4/objdir# gcc -v Reading specs from /local/opt/gcc-3.4.4/lib/gcc/hppa1.1-hp-hpux10.20/3.4.4/specs Configured with: ../configure --disable-nls --prefix=/local/opt/gcc-3.4.4 --with-as=

Re: ICE hunting in gcc-4.1

2005-08-03 Thread Eric Christopher
Would that be useful, or is it overkill? Very useful. Though if you can occasionally go back through them to verify they're still bugs it'd be appreciated. -eric

ICE hunting in gcc-4.1

2005-08-03 Thread Dan Kegel
Geez, 'delta' from http://www.cs.berkeley.edu/~dsw really does seem to make it easy to track down near-minimal testcases for ICEs. It's tempting to continually beat the crap out of gcc-4.1 snapshots by compiling all the sources I can find, then for each ICE that occurs, using delta to find a mini

RE: FW: what happened to service routines like getarg, iargc, ... in gfortran

2005-08-03 Thread Winfrid.Tschiedel
Hello James, Thanks for the information - I have now to report the problem to bugzilla ( redhat ), because I used their build. Just an additional question - those routines are missing in the online documentation ( http://gcc.gnu.org/onlinedocs/gcc-4.0.1/gfortran/ ) In the previous manual ( htt

Re: does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Jack Howarth
Richard, Is there some sample code that one can use to test the functionality of the code generated by -fstack-protector? Also, if one has a buggy program that is corrupting the stack, what is the expected behavior of this program when compiled with the stack protection code? Should it always a

Re: memcpy to an unaligned address

2005-08-03 Thread Ian Lance Taylor
Richard Henderson <[EMAIL PROTECTED]> writes: > On Tue, Aug 02, 2005 at 01:45:01PM -0700, Ian Lance Taylor wrote: > > Andrew Pinski <[EMAIL PROTECTED]> writes: > > > > > > Yes, this is a compiler bug in the expansion of memcpy, please file a > > > > bug report. The solution is for the compiler

Re: -b vs -bundle

2005-08-03 Thread James E Wilson
Jack Howarth wrote: In compiling xplor-nih under the gcc/g++ of 4.1 branch instead of Apple's gcc/g++ 4.0 compilers from Xcode 2.1, I noticed that the gnu gcc compiler doesn't gracefully handle the -bundle flag. On Apple's compiler I can have a Makefile entry like... This is PR 21366. Yo

Re: does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Richard Henderson
On Wed, Aug 03, 2005 at 09:39:13PM -0400, Jack Howarth wrote: > Do you think I should be able to build gcc itself with the > -fstack-protector flag and what is the most appropriate way to > achieve that (ie brute force using a CFLAG or some configure > flag)? Considering that I don't think tha

General problem with x86 and PIC

2005-08-03 Thread Kean Johnston
Hi everyone, I've filed #23224, which outlines some pretty substantial problems with PIC on x86 targets (at least 2). This was all tested on 3.4.4, but very similar, if not exact, failures exist on the head of the 3_4-branch, and on the 4_0-branch too. I havent tried top-of-tree. I doubt this is

Re: FW: what happened to service routines like getarg, iargc, ... in gfortran

2005-08-03 Thread James E Wilson
[EMAIL PROTECTED] wrote: Recently I tried to install mpich-1.2.7 with gfortran (gcc-4.0.1) on a fedora core 4 (x86_64) : The configure for mpich fails for fortran, because getarg and iargc are missing. Now my question, g77 supported a lot of commonly used service routines, which are now missing

Re: does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Jack Howarth
Richard, Do you think I should be able to build gcc itself with the -fstack-protector flag and what is the most appropriate way to achieve that (ie brute force using a CFLAG or some configure flag)? I am interested in doing this so that I can have a libgfortran built with -fstack-protector to

Re: does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Jack Howarth
Eric, Well what I have is a gfortran 4.1 branch fink package built using the 20050728 cvs with the new cray pointer patches donated by LANL. What I am trying to do is the following. I have been trying to build xplor-nih (which is a mix of c, c++ and fortran) with gfortran (it works okay with g77

Re: does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Richard Henderson
On Wed, Aug 03, 2005 at 08:48:46PM -0400, Jack Howarth wrote: > Also, this is based on IBM's ProPolice code, right? Logically. It's a complete rewrite. r~

Re: does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Eric Christopher
On Aug 3, 2005, at 5:48 PM, Jack Howarth wrote: Does anyone know if the -fstack-protector option in gcc 4.1 branch works on Darwin 8 (Tiger)? I can compile binaries with it but I'm not sure how to test its functionality. Also, this is based on IBM's ProPolice code, right? I'm surprised

does -fstack-protector work for gcc 4.1 on Darwin 8?

2005-08-03 Thread Jack Howarth
Does anyone know if the -fstack-protector option in gcc 4.1 branch works on Darwin 8 (Tiger)? I can compile binaries with it but I'm not sure how to test its functionality. Also, this is based on IBM's ProPolice code, right? Jack

G++ Modification Question

2005-08-03 Thread Brendon Costa
Hi all, A while ago I attempted to make a modification to gcc 4.0 before it was released. I attempted to create a modification that would allow me to document all exceptions that are eithre thrown directly by a function/method or that could propagate through a function/method. I ran into a

Re: memcpy to an unaligned address

2005-08-03 Thread Richard Henderson
On Wed, Aug 03, 2005 at 12:15:05PM -0600, Shaun Jackman wrote: > I'm not sure I understood the last line. s is a structure, and its > address is aligned. How would you pass it to memcpy, and why would it > generate an unaligned copy? In the example I was replying to, S is a pointer to a structure,

Re: i_am_not_a_leaf() and -fno-unit-at-a-time

2005-08-03 Thread Dwayne Grant McConnell
On Mon, 1 Aug 2005, Roland McGrath wrote: > initfini.c needs -fno-unit-at-a-time. It's not a normal compilation, but a > special hack for generating assembly fragments. The development libc uses > the flag for that file. I see now that the powerpc32 and powerpc64 Makefiles are overriding the d

RE: memcpy to an unaligned address

2005-08-03 Thread Dave Korn
Original Message >From: Shaun Jackman >Sent: 03 August 2005 19:15 > On 8/3/05, Richard Henderson <[EMAIL PROTECTED]> wrote: >> It is nevertheless correct. Examine all of the parts of the expression. >> >> In particular, "&s->b". What type does it have? In an ideal world, it >> would be

Re: non canonical tree in java

2005-08-03 Thread Andrew Pinski
On Aug 3, 2005, at 2:05 PM, Nathan Sidwell wrote: Andrew Pinski wrote: The java front-end later on replaces prim_class with the correct tree, witness how the type of COMPONENT_REF is NULL. where does this happen? do you happen to know? Happens in java_complete_lhs in parse.y: case CO

Re: memcpy to an unaligned address

2005-08-03 Thread Shaun Jackman
On 8/3/05, Richard Henderson <[EMAIL PROTECTED]> wrote: > It is nevertheless correct. Examine all of the parts of the expression. > > In particular, "&s->b". What type does it have? In an ideal world, it > would be "pointer to unaligned integer". But we have no such type in > our type system,

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Richard Henderson
On Wed, Aug 03, 2005 at 05:28:43PM +0200, Gunther Nikl wrote: > Thank you. With "emit_insn (gen_rtx_USE (VOIDmode, reg))" the abort > disappears. The same approach seems to fix the loads in the prologue. > I hope that this is the correct solution. No, it isn't. Your problem is that you havn

Re: non canonical tree in java

2005-08-03 Thread Nathan Sidwell
Andrew Pinski wrote: The java front-end later on replaces prim_class with the correct tree, witness how the type of COMPONENT_REF is NULL. where does this happen? do you happen to know? nathan -- Nathan Sidwell:: http://www.codesourcery.com :: CodeSourcery LLC [EMAIL PROTECTED]

Re: memcpy to an unaligned address

2005-08-03 Thread Richard Henderson
On Tue, Aug 02, 2005 at 01:45:01PM -0700, Ian Lance Taylor wrote: > Andrew Pinski <[EMAIL PROTECTED]> writes: > > > > Yes, this is a compiler bug in the expansion of memcpy, please file a > > > bug report. The solution is for the compiler to notice the memory > > > alignment of the destinatio

Re: Wrong ChangeLog entries

2005-08-03 Thread Mark Mitchell
Giovanni Bajo wrote: Mark, - with your commit for PR 20142, you also committed a hunk to name-lookup.c which is not described in the ChangeLog. It is also unclear whether it is effectively need for that PR or not, but nonetheless it went in, so the entry should probably be fixed I wanted you t

Re: non canonical tree in java

2005-08-03 Thread Andrew Pinski
> > java is creating a COMPONENT_REF node where the first operand is a > RECORD_TYPE, > rather than an expresion or DECL node. This is created at java/class.c:1014 > > prim_class = lookup_class (get_identifier (prim_class_name)); > return build3 (COMPONENT_REF, NULL_TRE

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Ian Lance Taylor
Gunther Nikl <[EMAIL PROTECTED]> writes: > I am trying to add instructions into function prologue/epilogue. These > instructions shall save and load "fixed" registers to avoid assembly. > > Register saving in the prologue appears to work. The restore code in the > epilogue aborts in flow.c/propag

non canonical tree in java

2005-08-03 Thread Nathan Sidwell
java is creating a COMPONENT_REF node where the first operand is a RECORD_TYPE, rather than an expresion or DECL node. This is created at java/class.c:1014 prim_class = lookup_class (get_identifier (prim_class_name)); return build3 (COMPONENT_REF, NULL_TREE,

Re: Question on accessing and using binfos

2005-08-03 Thread Ian Lance Taylor
<[EMAIL PROTECTED]> writes: > > I'm wondering if I can get information from here on how to use the > > binfo macros. > > > What are the binfo access functions for gcc 3.4.1? I'm having trouble > creating the html files for gcc and I've been told BINFO_BASE_BINFO and > BINFO_BASE_ITERATE, which I

Re: memcpy to an unaligned address

2005-08-03 Thread Paul Koning
> "Shaun" == Shaun Jackman <[EMAIL PROTECTED]> writes: Shaun> On 8/2/05, Paul Koning <[EMAIL PROTECTED]> wrote: >> It sounds like the workaround is to avoid memcpy, and just use >> variable assignment. Alternatively, cast the pointers to char*, >> which should force memcpy to do the right

Re: Request to reopen a PR

2005-08-03 Thread Joe Buck
On Wed, Aug 03, 2005 at 02:56:08PM +1000, Greg Schafer wrote: > Could somebody with appropriate privilege please do me a favor and reopen > the following bugzilla PR? > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20003 Volker re-opened it.

Re: Need help creating a small test case for g++ 4.0.0 bug

2005-08-03 Thread Volker Reichelt
Paul Leopardi wrote: > I have now downloaded, bootstapped and installed gcc 4.0.1. The bug in g++ > optimization is still there. I've made an attempt to follow the instructions > on minimizing test cases and have so far accomplished: > wc of old preprocessed source: > 99412 260586 2965538 peg

Re: Need help creating a small test case for g++ 4.0.0 bug

2005-08-03 Thread Daniel Berlin
2nd implementation?: http://www.cs.berkeley.edu/~dsw/ This is what we all use, AFAIK :)

Re: Need help creating a small test case for g++ 4.0.0 bug

2005-08-03 Thread Dan Kegel
"Paul C. Leopardi" <[EMAIL PROTECTED]> wrote: > So I seem to be left with a large ( >2.5MB ) preprocessed source file. Should > I try to report the bug using this large file as a test case? Sure. But you might want to try using an automated tool to reduce the test case first. There's one called

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Gunther Nikl
On Wed, Aug 03, 2005 at 03:50:09PM +0100, Nathan Sidwell wrote: > Gunther Nikl wrote: > >I am trying to add instructions into function prologue/epilogue. These > >instructions shall save and load "fixed" registers to avoid assembly. > > > >Register saving in the prologue appears to work. The restor

Re: Need help creating a small test case for g++ 4.0.0 bug

2005-08-03 Thread Paul C. Leopardi
Hi Janis, A belated reply to your message is below. Best regards, Paul Leopardi On Tue, 17 May 2005 03:23 am, Janis Johnson wrote: > On Sat, May 14, 2005 at 12:16:54PM +1000, Paul C. Leopardi wrote: > > Hi all, > > I originally posted these messages to gcc-help, but had no reply, so I am > > re-po

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Nathan Sidwell
Nathan Sidwell wrote: you can add a (USE reg) after the restore in the prologue. Then flow in the EPILOGUE, of course considers the register, and the preceding load, to be live at that point. nathan -- Nathan Sidwell:: http://www.codesourcery.com :: CodeSourcery LLC [EMAIL PROT

Re: inserting instructions into prologue/epilogue

2005-08-03 Thread Nathan Sidwell
Gunther Nikl wrote: Hello! I am trying to add instructions into function prologue/epilogue. These instructions shall save and load "fixed" registers to avoid assembly. Register saving in the prologue appears to work. The restore code in the epilogue aborts in flow.c/propagate_one_insn with "

inserting instructions into prologue/epilogue

2005-08-03 Thread Gunther Nikl
Hello! I am trying to add instructions into function prologue/epilogue. These instructions shall save and load "fixed" registers to avoid assembly. Register saving in the prologue appears to work. The restore code in the epilogue aborts in flow.c/propagate_one_insn with "Attempt to delete prol

Question on accessing and using binfos

2005-08-03 Thread Primrose.Mbanefo
> Hello, > > I'm wondering if I can get information from here on how to use the > binfo macros. > What are the binfo access functions for gcc 3.4.1? I'm having trouble creating the html files for gcc and I've been told BINFO_BASE_BINFO and BINFO_BASE_ITERATE, which I found on the onlinedocs, are

FW: what happened to service routines like getarg, iargc, ... in gfortran

2005-08-03 Thread Winfrid.Tschiedel
Hello, Recently I tried to install mpich-1.2.7 with gfortran (gcc-4.0.1) on a fedora core 4 (x86_64) : The configure for mpich fails for fortran, because getarg and iargc are missing. Now my question, g77 supported a lot of commonly used service routines, which are now missing or at least I