public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: g77 problem in egcs-ss-970828
@ 1997-08-29 15:40 Mumit Khan
  1997-08-29 15:45 ` A patch for test case Jeffrey A Law
  1997-08-29 15:45 ` HAVE_STDLIB_H Jeffrey A Law
  0 siblings, 2 replies; 8+ messages in thread
From: Mumit Khan @ 1997-08-29 15:40 UTC (permalink / raw)
  To: egcs

Toon Moene  writes:
> I'm sending this to egcs, because I'm not entirely sure that this  
> front end bug is *not* caused by the snapshots C compiler  
> miscompiling the g77 frontend.
> 
> Given the following Fortran routine:
> 
>       SUBROUTINE AAP(NOOT)
>       DIMENSION NOOT(*)
>       END


I can verify this problem on at 2 other platforms, and it does not happen
with the previous snapshots (2.90.00-2.90.02) on either of these machines
(i686-linux-gnulibc1 and hppa1.1-hp-hpux10.20).

Mumit

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: A patch for test case
  1997-08-29 15:40 g77 problem in egcs-ss-970828 Mumit Khan
@ 1997-08-29 15:45 ` Jeffrey A Law
  1997-08-29 15:45 ` HAVE_STDLIB_H Jeffrey A Law
  1 sibling, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1997-08-29 15:45 UTC (permalink / raw)
  To: egcs

  In message you write:
  > Without this patch, it will fail on any dynamic linker which
  > uses global strcmp ().
Tege comments?


  > -- 
  > H.J. Lu (hjl@gnu.ai.mit.edu)
  > ---
  > Index: gcc/testsuite/gcc.c-torture/execute/921007-1.c
  > ===================================================================
  > RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/gcc.c-torture/execute/92100
  > 7-1.c,v
  > retrieving revision 1.1.1.1
  > diff -u -r1.1.1.1 921007-1.c
  > --- 921007-1.c	1997/08/26 00:21:22	1.1.1.1
  > +++ 921007-1.c	1997/08/28 19:49:30
  > @@ -1,4 +1,4 @@
  > -int strcmp(){return-1;}
  > +static int strcmp(){return-1;}
  >  #define strcmp __builtin_strcmp
  >  main()
  >  {

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: HAVE_STDLIB_H
  1997-08-29 15:40 g77 problem in egcs-ss-970828 Mumit Khan
  1997-08-29 15:45 ` A patch for test case Jeffrey A Law
@ 1997-08-29 15:45 ` Jeffrey A Law
  1 sibling, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1997-08-29 15:45 UTC (permalink / raw)
  To: egcs

  In message you write:
  > To see how this is supposed to work, see the bfd sources.  The gcc
  > implementation was copied from bfd, but is incomplete.
  > 
  > I knew that we were missing this stuff:
  > 	#ifdef NEED_DECLARATION_FREE
  > 	extern void free ();
  > 	#endif
  > 
  > But now I see that we are also missing this stuff:
  > 	#ifdef HAVE_STDLIB_H
  > 	#include 
  > 	#endif
Yup.  That's exactly the problem.

  > If you want, I am willing to take this problem off your hands.
Well, I've added the ones that were absolutely necessary to get
egcs building again.  We really need to go through and add them
to the rest of the compiler though.


Jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g77 problem in egcs-ss-970828
  1997-08-30  5:43 Results for haifa-enabled egcs-970828 gcc testsuite on sparc-sun-solaris2.5 Alexandre Oliva
@ 1997-08-30 11:27 ` Dave Love
  0 siblings, 0 replies; 8+ messages in thread
From: Dave Love @ 1997-08-30 11:27 UTC (permalink / raw)
  To: egcs

>>>>> "Toon" == Toon Moene  writes:

 >> SUBROUTINE AAP(NOOT)
 >> DIMENSION NOOT(*)
 >> END

 Toon> And Mumit Kahn replied:

 >> I can verify this problem on at 2 other platforms, and
 >> it does not happen with the previous snapshots
 >> (2.90.00-2.90.02) on either of these machines
 >> (i686-linux-gnulibc1 and hppa1.1-hp-hpux10.20).

 Toon> This makes it highly unlikely that it is caused by miscompilation  
 Toon> by the snapshot's C compiler.

 Toon> Craig, do you now where to look for this g77 front end bug ?

It doesn't occur with the gcc 2.7-based g77 patched up to g77-970827
on x86 linux.

I don't know if it's relevant, but there are longstanding problems
describing assumed-size and adjustable arrays about which there's an
essay somewhere in f/com.c IIRC.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g77 problem in egcs-ss-970828
  1997-08-29 18:12 A vtable thunks bug Ulrich Drepper
@ 1997-08-29 18:59 ` Jeffrey A Law
  0 siblings, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1997-08-29 18:59 UTC (permalink / raw)
  To: egcs

  In message you write:
  > Toon Moene  writes:
  > > I'm sending this to egcs, because I'm not entirely sure that this  
  > > front end bug is *not* caused by the snapshots C compiler  
  > > miscompiling the g77 frontend.
  > > 
  > > Given the following Fortran routine:
  > > 
  > >       SUBROUTINE AAP(NOOT)
  > >       DIMENSION NOOT(*)
  > >       END
  > 
  > 
  > I can verify this problem on at 2 other platforms, and it does not happen
  > with the previous snapshots (2.90.00-2.90.02) on either of these machines
  > (i686-linux-gnulibc1 and hppa1.1-hp-hpux10.20).
It's a bad interaction between the fold-const.c changes to detect
overflows in array index & size calculations and the g77 front end
(I brought the fold-const.c changes over between the 970825 and 970828
snapshots.

Backing out the fold-const.c (and c-decl.c) changes fixes the problem.
I think that's the way to go; we'll bring the fold-const and c-decl
changes back into egcs after the first release when we can analyze
this problem further.

jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g77 problem in egcs-ss-970828
  1997-08-29 16:46 Toon Moene
@ 1997-08-29 17:20 ` Jeffrey A Law
  0 siblings, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1997-08-29 17:20 UTC (permalink / raw)
  To: egcs

  In message you write:
  > I'm sending this to egcs, because I'm not entirely sure that this  
  > front end bug is *not* caused by the snapshots C compiler  
  > miscompiling the g77 frontend.
  > 
  > Given the following Fortran routine:
  > 
  >       SUBROUTINE AAP(NOOT)
  >       DIMENSION NOOT(*)
  >       END
  > 
  > (for non-Fortraners, NOOT(*) means something like noot[] in C) I  
  > get the following error from g77:
I'll look at it.  Either the code to catch too-large array sizes
is incorrectly giving an error, or something is wrong in the fortran
front end (which was upgraded for this snapshot).

jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: g77 problem in egcs-ss-970828
@ 1997-08-29 16:46 Toon Moene
  1997-08-29 17:20 ` Jeffrey A Law
  0 siblings, 1 reply; 8+ messages in thread
From: Toon Moene @ 1997-08-29 16:46 UTC (permalink / raw)
  To: egcs

I wrote:

> I'm sending this to egcs, because I'm not entirely sure that this  
> front end bug is *not* caused by the snapshots C compiler
> miscompiling the g77 frontend.
>
> Given the following Fortran routine:
>
>       SUBROUTINE AAP(NOOT)
>       DIMENSION NOOT(*)
>       END

And Mumit Kahn replied:

>  I can verify this problem on at 2 other platforms, and
>  it does not happen with the previous snapshots
>  (2.90.00-2.90.02) on either of these machines
>  (i686-linux-gnulibc1 and hppa1.1-hp-hpux10.20).

This makes it highly unlikely that it is caused by miscompilation  
by the snapshot's C compiler.

Craig, do you now where to look for this g77 front end bug ?

TIA,
Toon

^ permalink raw reply	[flat|nested] 8+ messages in thread

* g77 problem in egcs-ss-970828
@ 1997-08-29 13:47 Toon Moene
  0 siblings, 0 replies; 8+ messages in thread
From: Toon Moene @ 1997-08-29 13:47 UTC (permalink / raw)
  To: egcs

I'm sending this to egcs, because I'm not entirely sure that this  
front end bug is *not* caused by the snapshots C compiler  
miscompiling the g77 frontend.

Given the following Fortran routine:

      SUBROUTINE AAP(NOOT)
      DIMENSION NOOT(*)
      END

(for non-Fortraners, NOOT(*) means something like noot[] in C) I  
get the following error from g77:

/usr/test/bin/g77 -v array2large.f
g77 version 0.5.21-19970826
 /usr/test/bin/gcc -v -xf77 array2large.f -xnone -lf2c -lm
Reading specs from  
/usr/test/lib/gcc-lib/m68k-next-nextstep3/egcs-2.90.03/specs
gcc version egcs-2.90.03 970828 (gcc2-970802 experimental)
 /usr/test/lib/gcc-lib/m68k-next-nextstep3/egcs-2.90.03/f771  
array2large.f -fset-g77-defaults -quiet -dumpbase array2large.f  
-version -fversion -o /usr/tmp/cc022314.s
GNU F77 version egcs-2.90.03 970828 (gcc2-970802 experimental)  
(m68k-next-nextstep3) compiled by GNU C version egcs-2.90.03 970828  
(gcc2-970802 experimental).
GNU Fortran Front End version 0.5.21-19970826
array2large.f: In subroutine `aap':
array2large.f:1:
         SUBROUTINE AAP(NOOT)
                        ^
Array `noot' at (^) is too large to handle

I picked up egcs-core-970828.tar.gz and egcs-g77-970828.tar.gz from  
the anonymous ftp site, unpacked and did a

% setenv CC cc; ./configure --prefix=/usr/test; make

Because that didn't do a make bootstrap in the gcc directory, I  
went into that directory and did

% make bootstrap LANGUAGES=c CFLAGS="-g -O3"

That worked; the subsequent `make compare' completed without error.

Then I built g77, thusly:

% make CC="stage2/xgcc -Bstage2/" CFLAGS="-O -g -O3" LDFLAGS=""  
libdir=/usr/test/lib STAGE_PREFIX=stage2/ LANGUAGES="c f77"

and installed the stuff.

Hope this is accurate enough,
Toon.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1997-08-30 11:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-29 15:40 g77 problem in egcs-ss-970828 Mumit Khan
1997-08-29 15:45 ` A patch for test case Jeffrey A Law
1997-08-29 15:45 ` HAVE_STDLIB_H Jeffrey A Law
  -- strict thread matches above, loose matches on Subject: below --
1997-08-30  5:43 Results for haifa-enabled egcs-970828 gcc testsuite on sparc-sun-solaris2.5 Alexandre Oliva
1997-08-30 11:27 ` g77 problem in egcs-ss-970828 Dave Love
1997-08-29 18:12 A vtable thunks bug Ulrich Drepper
1997-08-29 18:59 ` g77 problem in egcs-ss-970828 Jeffrey A Law
1997-08-29 16:46 Toon Moene
1997-08-29 17:20 ` Jeffrey A Law
1997-08-29 13:47 Toon Moene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).