public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: Bootstrap failure in libio on SunOS4 and AIX4
  1999-04-30 23:15 ` Mumit Khan
@ 1999-04-12 12:52   ` Jeffrey A Law
  1999-04-30 23:15     ` Mumit Khan
  0 siblings, 1 reply; 6+ messages in thread
From: Jeffrey A Law @ 1999-04-12 12:52 UTC (permalink / raw)
  To: Mumit Khan; +Cc: egcs-bugs

  In message < 199904121659.LAA26173@modi.xraylith.wisc.edu >you write:
  > "Kaveh R. Ghazi" <ghazi@snafu.Rutgers.EDU> writes:
  > > 
  > > 	I'm getting a bootstrap failure in libio on powerpc-ibm-aix4.1.4.0
  > > and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7, OSF4
  > > or Irix6.)
  > > 
  > > 	It looks like this:
  > > 
  > >  > /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xgcc
  > >  > 	-B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411
  > /gcc/
  > >  > 	-B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
  > >  > 	-fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
  > >  > iostream.cc: In method `iostream::iostream(streambuf *, ostream * = 0)
  > ':
  > >  > iostream.cc:966: Internal compiler error.
  > >  > iostream.cc:966: Please submit a full bug report to
  > >  > 	`egcs-bugs@egcs.cygnus.com'.
  > >  > iostream.cc:966: See
  > >  > 	<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
  > >  > make[2]: *** [iostream.o] Error 1
  > 
  > 
  > I see something similar as well, and also see compiler hanging when
  > using -O2. I had to bootstrap with CXXFLAGS=-O on the following systems:
  >   
  >   i686-pc-linux-gnu (filebuf.o -- hang)
  >   hppa1.1-hp-hpux10.20 (iostream.o -- ICE)
  >   i586-pc-cygwin32 (filebuf.o -- hang)
  >   i386-pc-mingw32 (filebuf.o -- hang)
At least the PA failure was the bug I mentioned on Sunday afternoon.  I checked
in a fix for it late late last night.

I've bootstrapped the PA & x86 linux.
jeff
>From law@upchuck.cygnus.com Mon Apr 12 12:59:00 1999
From: Jeffrey A Law <law@upchuck.cygnus.com>
To: "Kaveh R. Ghazi" <ghazi@snafu.Rutgers.EDU>
Cc: egcs-bugs@egcs.cygnus.com
Subject: Re: Bootstrap failure in libio on SunOS4 and AIX4 
Date: Mon, 12 Apr 1999 12:59:00 -0000
Message-id: <7538.923946838@upchuck>
References: <199904121641.MAA22798@snafu.rutgers.edu>
X-SW-Source: 1999-04/msg00333.html
Content-length: 1402

  In message < 199904121641.MAA22798@snafu.rutgers.edu >you write:
  > 
  > 	I'm getting a bootstrap failure in libio on powerpc-ibm-aix4.1.4.0
  > and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7, OSF4
  > or Irix6.)
  > 
  > 	It looks like this:
  > 
  >  > /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xgcc
  >  > 	-B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/
  >  > 	-B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
  >  > 	-fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
  >  > iostream.cc: In method `iostream::iostream(streambuf *, ostream * = 0)':
  >  > iostream.cc:966: Internal compiler error.
  >  > iostream.cc:966: Please submit a full bug report to
  >  > 	`egcs-bugs@egcs.cygnus.com'.
  >  > iostream.cc:966: See
  >  > 	<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
  >  > make[2]: *** [iostream.o] Error 1
  > 
  > 
  > 	When I run cc1plus under gdb on SunOS4, I get:
  > 
  >  > Program received signal SIGSEGV, Segmentation fault.
  >  > make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
  >  > 1085      e->pred_next = dst->pred;
  >  > (gdb) where
  >  > #0  make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
  >  > #1  0xc4dbc in make_label_edge (src=0x463e70, label=0x45aad8, flags=12)
  >  >     at flow.c:1113
Should have been fixed by my last change from last night.

jeff
>From paulf@aphrodite.com Mon Apr 12 13:48:00 1999
From: Paul Forgey <paulf@aphrodite.com>
To: egcs-bugs@cygnus.com
Subject: memcpy() optomization issue
Date: Mon, 12 Apr 1999 13:48:00 -0000
Message-id: <Pine.LNX.4.04.9904121342460.15391-100000@fluffy.aphrodite.com>
X-SW-Source: 1999-04/msg00334.html
Content-length: 1112

I guess this could be considered either a bug or a feature, but the
circumstance surrounding it is curious.

Using gnu-as (binutils 2.9.1) and egcs-2.91.60, there is a very wierd
gotcha with memcpy() optomizations on -O2.

Consider a pointer to structure assigned to a non-aligned memory space. A
memcpy() of 4 bytes will optomize to an assignment (as I would expect; how
is the compiler to know the structure isn't pointing to an aligned
address?).  On Solaris 2.6 and Hpux 10.20, both of which are non-intel
architectures which care about alignment, this causes an obvious problem.

The wierd thing is this doesn't happen if -pipe isn't used as a compiler
option.  That is, -O2 -pipe causes an aligment execption, while -O2
doesn't, however both versions compile to the same assembly output, as far
as I can tell.  This to me is wierd.

This does have an obious workaround; in my case I wrote a copy4()
function which performs the copy without using memcpy().

But given that a programmer will use a memcpy() of 4 bytes explicitly to
NOT cause an alignment exepction, is this really a sensible optomization?



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

* Re: Bootstrap failure in libio on SunOS4 and AIX4
  1999-04-30 23:15 Bootstrap failure in libio on SunOS4 and AIX4 Kaveh R. Ghazi
@ 1999-04-30 23:15 ` Mumit Khan
  1999-04-12 12:52   ` Jeffrey A Law
  1999-04-30 23:15 ` Jeffrey A Law
  1 sibling, 1 reply; 6+ messages in thread
From: Mumit Khan @ 1999-04-30 23:15 UTC (permalink / raw)
  To: egcs-bugs

"Kaveh R. Ghazi" <ghazi@snafu.Rutgers.EDU> writes:
> 
> 	I'm getting a bootstrap failure in libio on powerpc-ibm-aix4.1.4.0
> and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7, OSF4
> or Irix6.)
> 
> 	It looks like this:
> 
>  > /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xgcc
>  > 	-B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/
>  > 	-B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
>  > 	-fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
>  > iostream.cc: In method `iostream::iostream(streambuf *, ostream * = 0)':
>  > iostream.cc:966: Internal compiler error.
>  > iostream.cc:966: Please submit a full bug report to
>  > 	`egcs-bugs@egcs.cygnus.com'.
>  > iostream.cc:966: See
>  > 	<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
>  > make[2]: *** [iostream.o] Error 1


I see something similar as well, and also see compiler hanging when
using -O2. I had to bootstrap with CXXFLAGS=-O on the following systems:
  
  i686-pc-linux-gnu (filebuf.o -- hang)
  hppa1.1-hp-hpux10.20 (iostream.o -- ICE)
  i586-pc-cygwin32 (filebuf.o -- hang)
  i386-pc-mingw32 (filebuf.o -- hang)

Regards,
Mumit



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

* Bootstrap failure in libio on SunOS4 and AIX4
@ 1999-04-30 23:15 Kaveh R. Ghazi
  1999-04-30 23:15 ` Mumit Khan
  1999-04-30 23:15 ` Jeffrey A Law
  0 siblings, 2 replies; 6+ messages in thread
From: Kaveh R. Ghazi @ 1999-04-30 23:15 UTC (permalink / raw)
  To: egcs-bugs

	I'm getting a bootstrap failure in libio on powerpc-ibm-aix4.1.4.0
and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7, OSF4
or Irix6.)

	It looks like this:

 > /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xgcc
 > 	-B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/
 > 	-B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
 > 	-fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
 > iostream.cc: In method `iostream::iostream(streambuf *, ostream * = 0)':
 > iostream.cc:966: Internal compiler error.
 > iostream.cc:966: Please submit a full bug report to
 > 	`egcs-bugs@egcs.cygnus.com'.
 > iostream.cc:966: See
 > 	<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
 > make[2]: *** [iostream.o] Error 1


	When I run cc1plus under gdb on SunOS4, I get:

 > Program received signal SIGSEGV, Segmentation fault.
 > make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
 > 1085      e->pred_next = dst->pred;
 > (gdb) where
 > #0  make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
 > #1  0xc4dbc in make_label_edge (src=0x463e70, label=0x45aad8, flags=12)
 >     at flow.c:1113
 > #2  0xc4bc0 in make_edges (label_value_list=0x46f1c8, bb_eh_end=0xefffe970)
 >     at flow.c:1035
 > #3  0xc3df4 in find_basic_blocks (f=0x4539e0, nregs=311, file=0x0, 
 >     do_cleanup=1) at flow.c:405
 > #4  0xc498 in rest_of_compilation (decl=0x3d6268) at toplev.c:4170
 > #5  0x1b6d8c in finish_function (lineno=966, flags=0, nested=0) at decl.c:14175
 > #6  0x202f74 in yyparse () at parse.y:641
 > #7  0xa348 in compile_file (name=0xeffffc63 "iostream.ii") at toplev.c:3019
 > #8  0xec10 in main (argc=8, argv=0xeffffb24) at toplev.c:5354


	It looks like its dying because parameter `dst' is NULL.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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

* Re: Bootstrap failure in libio on SunOS4 and AIX4
  1999-04-12 12:52   ` Jeffrey A Law
@ 1999-04-30 23:15     ` Mumit Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1999-04-30 23:15 UTC (permalink / raw)
  To: egcs-bugs

Jeffrey A Law <law@upchuck.cygnus.com> writes:
> 
>   In message < 199904121659.LAA26173@modi.xraylith.wisc.edu >you write:
>   > "Kaveh R. Ghazi" <ghazi@snafu.Rutgers.EDU> writes:
>   > > 
>   > > 	I'm getting a bootstrap failure in libio on powerpc-ibm-aix4.1.
> 4.0
>   > > and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7, OSF4
>   > > or Irix6.)
>   > > 
>   > > 	It looks like this:
>   > > 
>   > >  > /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xg
> cc
>   > >  > 	-B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411
>   > /gcc/
>   > >  > 	-B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
>   > >  > 	-fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
>   > >  > iostream.cc: In method `iostream::iostream(streambuf *, ostream * = 
> 0)
>   > ':
>   > >  > iostream.cc:966: Internal compiler error.
>   > >  > iostream.cc:966: Please submit a full bug report to
>   > >  > 	`egcs-bugs@egcs.cygnus.com'.
>   > >  > iostream.cc:966: See
>   > >  > 	<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
>   > >  > make[2]: *** [iostream.o] Error 1
>   > 
>   > 
>   > I see something similar as well, and also see compiler hanging when
>   > using -O2. I had to bootstrap with CXXFLAGS=-O on the following systems:
>   >   
>   >   i686-pc-linux-gnu (filebuf.o -- hang)
>   >   hppa1.1-hp-hpux10.20 (iostream.o -- ICE)
>   >   i586-pc-cygwin32 (filebuf.o -- hang)
>   >   i386-pc-mingw32 (filebuf.o -- hang)
> At least the PA failure was the bug I mentioned on Sunday afternoon.  I check
> ed
> in a fix for it late late last night.
> 
> I've bootstrapped the PA & x86 linux.

Thanks. Both of these work fine after an update some during the day.

I'm still getting a hang on all the ix86-*-win32 targets. Will investigate 
where it's hanging.

Regards,
Mumit



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

* Re: Bootstrap failure in libio on SunOS4 and AIX4
  1999-04-30 23:15 Bootstrap failure in libio on SunOS4 and AIX4 Kaveh R. Ghazi
  1999-04-30 23:15 ` Mumit Khan
@ 1999-04-30 23:15 ` Jeffrey A Law
  1 sibling, 0 replies; 6+ messages in thread
From: Jeffrey A Law @ 1999-04-30 23:15 UTC (permalink / raw)
  To: Kaveh R. Ghazi; +Cc: egcs-bugs

  In message < 199904121641.MAA22798@snafu.rutgers.edu >you write:
  > 
  > 	I'm getting a bootstrap failure in libio on powerpc-ibm-aix4.1.4.0
  > and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7, OSF4
  > or Irix6.)
  > 
  > 	It looks like this:
  > 
  >  > /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xgcc
  >  > 	-B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/
  >  > 	-B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
  >  > 	-fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
  >  > iostream.cc: In method `iostream::iostream(streambuf *, ostream * = 0)':
  >  > iostream.cc:966: Internal compiler error.
  >  > iostream.cc:966: Please submit a full bug report to
  >  > 	`egcs-bugs@egcs.cygnus.com'.
  >  > iostream.cc:966: See
  >  > 	<URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
  >  > make[2]: *** [iostream.o] Error 1
  > 
  > 
  > 	When I run cc1plus under gdb on SunOS4, I get:
  > 
  >  > Program received signal SIGSEGV, Segmentation fault.
  >  > make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
  >  > 1085      e->pred_next = dst->pred;
  >  > (gdb) where
  >  > #0  make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
  >  > #1  0xc4dbc in make_label_edge (src=0x463e70, label=0x45aad8, flags=12)
  >  >     at flow.c:1113
Should have been fixed by my last change from last night.

jeff


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

* Re: Bootstrap failure in libio on SunOS4 and AIX4
@ 1999-04-30 23:15 Kaveh R. Ghazi
  0 siblings, 0 replies; 6+ messages in thread
From: Kaveh R. Ghazi @ 1999-04-30 23:15 UTC (permalink / raw)
  To: law; +Cc: egcs-bugs

 > From: Jeffrey A Law <law@upchuck.cygnus.com>
 >  
 >   In message < 199904121641.MAA22798@snafu.rutgers.edu >you write:
 >   > 
 >   >     I'm getting a bootstrap failure in libio on
 >   powerpc-ibm-aix4.1.4.0
 >   > and sparc-sun-sunos4.1.4 (but it does not happen on Solaris2.7,
 >   OSF4
 >   > or Irix6.)
 >   > 
 >   >     It looks like this:
 >   > 
 >   >  >
 >   /a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/xgcc
 >   >  >
 >   -B/a/caip/a47/u47/ghazi/gcc-testing/sunos-test/egcs-CVS19990411/gcc/
 >   >  >  -B/usr/local/sparc-sun-sunos4.1.4/bin/ -c -g -O2
 >   >  >  -fno-implicit-templates -I. -I. -nostdinc++ iostream.cc
 >   >  > iostream.cc: In method `iostream::iostream(streambuf *, ostream
 >   * = 0)':
 >   >  > iostream.cc:966: Internal compiler error.
 >   >  > iostream.cc:966: Please submit a full bug report to
 >   >  >  `egcs-bugs@egcs.cygnus.com'.
 >   >  > iostream.cc:966: See
 >   >  >  <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
 >   >  > make[2]: *** [iostream.o] Error 1
 >   > 
 >   > 
 >   >     When I run cc1plus under gdb on SunOS4, I get:
 >   > 
 >   >  > Program received signal SIGSEGV, Segmentation fault.
 >   >  > make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
 >   >  > 1085      e->pred_next = dst->pred;
 >   >  > (gdb) where
 >   >  > #0  make_edge (src=0x463e70, dst=0x0, flags=12) at flow.c:1085
 >   >  > #1  0xc4dbc in make_label_edge (src=0x463e70, label=0x45aad8,
 >   flags=12)
 >   >  >     at flow.c:1113
 >  
 > Should have been fixed by my last change from last night.
 > jeff


	I believe this problem was indeed fixed.  Thanks.  :-)

However, I am now seeing two other problems relating to building the
multilib libraries.  I'll describe those in their own separate messages.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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

end of thread, other threads:[~1999-04-30 23:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-30 23:15 Bootstrap failure in libio on SunOS4 and AIX4 Kaveh R. Ghazi
1999-04-30 23:15 ` Mumit Khan
1999-04-12 12:52   ` Jeffrey A Law
1999-04-30 23:15     ` Mumit Khan
1999-04-30 23:15 ` Jeffrey A Law
  -- strict thread matches above, loose matches on Subject: below --
1999-04-30 23:15 Kaveh R. Ghazi

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).