public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: prototyping
@ 1997-08-17 21:55 H.J. Lu
  1997-08-17 22:18 ` prototyping Jeffrey A Law
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: H.J. Lu @ 1997-08-17 21:55 UTC (permalink / raw)
  To: egcs

> 
>   In message <m0x0C8V-0004ecC@ocean.lucon.org>you write:
>   > > 
>   > >   In message <m0x07ER-0004ecC@ocean.lucon.org>you write:
>   > >   > I am thinking the other way around since I have removed those
>   > >   > incomplete external function declarations in .c files, using the
>   > >   > ones in .h files instead. I will first send in patches for .h files,
>   > >   > then .c files.
>   > > That's just as good of a place to start.
>   > > 
>   > 
>   > It dosen't work very well.
> I don't see why.
> 
> Go into a .c file, remove all the prototypes for extern things and
> put them into an appropriate .h file.  Remove all other prototypes
> for those same things from other .c files.
> 

It is not that simple. gcc is not designed with prototyping in mind.
It is kind of screwed up in that regard. A simple example, try to
prototype expand_expr () and you will see what I mean. It is just
the beginning :-).

I will see what I can do.


-- 
H.J. Lu (hjl@gnu.ai.mit.edu)

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Test result for 970814 on native sparc-sun-solaris2.5.1
@ 1997-08-19  2:36 Mumit Khan
  0 siblings, 0 replies; 10+ messages in thread
From: Mumit Khan @ 1997-08-19  2:36 UTC (permalink / raw)
  To: egcs

hjl@lucon.org (H.J. Lu) writes:
> > 
> >   In message <9708171708.AA03535@modi.xraylith.wisc.edu>you write:
> >   > btw, static template data members are not being instantiated breaking S
> GI
> >   > STL in libg++-2.8.0b6 (the allocator in particular).
> > I assume you're referring to the libstdc++ tests right?  Do you get an
> > error like:
> > 
> > /usr/ccs/bin/ld: Unsatisfied symbols:
> >    __default_alloc_template<false, 0>::end_free(data)
> >    __default_alloc_template<false, 0>::heap_size(data)
> >    __default_alloc_template<false, 0>::free_list(data)
> >    __default_alloc_template<false, 0>::start_free(data)
> > 

Yup. I instantiated these by hand just to test things, but then tmap
core dumped on me with '-g -O2'. The only time tmap works is when I
don't specify '-O*'. 

btw, the instantiations *are* there for i386-linux-gnulibc1, but not
for hppa1.1-hp-hpux10.20. "tmap" dies on either platform with -O*.

Mumit

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Test result for 970814 on native sparc-sun-solaris2.5.1
@ 1997-08-19  1:10 H.J. Lu
  0 siblings, 0 replies; 10+ messages in thread
From: H.J. Lu @ 1997-08-19  1:10 UTC (permalink / raw)
  To: egcs

> 
>   In message <9708171708.AA03535@modi.xraylith.wisc.edu>you write:
>   > btw, static template data members are not being instantiated breaking SGI
>   > STL in libg++-2.8.0b6 (the allocator in particular).
> I assume you're referring to the libstdc++ tests right?  Do you get an
> error like:
> 
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    __default_alloc_template<false, 0>::end_free(data)
>    __default_alloc_template<false, 0>::heap_size(data)
>    __default_alloc_template<false, 0>::free_list(data)
>    __default_alloc_template<false, 0>::start_free(data)
> 
> 
> 
>   > Also, I'm getting a 
>   > core dump when compiling libstdc++ tests when compiling with '-g -O2', but 
>   > with -g.
> I was able to get libstdc++ in 2.8.0b6 built using egcs.
> 

I could build libg++ 2.8.0b6 with my glibc patch on Linux/x86. But
make check failed due to segmentation fault of tmap in libstdc++/tests.


-- 
H.J. Lu (hjl@gnu.ai.mit.edu)

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Test result for 970814 on native sparc-sun-solaris2.5.1
@ 1997-08-18  8:13 Klaus Kaempf
  0 siblings, 0 replies; 10+ messages in thread
From: Klaus Kaempf @ 1997-08-18  8:13 UTC (permalink / raw)
  To: egcs

> 
> Normally, I don't think we should pollute up a list like this one with
> testresults, but since we have a first snapshot, I thought I would do
> one:

Maybe we shouldn't pollute the list with testresults but how about 'polluting'
a web site (WWW-Gnat comes in mind) with such results and open bugs. Adding a
'responsible' or 'working on' list will help getting the right people to work
on the bugs.

Klaus
-- 
proGIS Software                 E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf      Fax:    0241-47067-29
Jakobstr. 117                   Voice:  0241-47067-11
D-52064 Aachen                  WWW:	http://www.progis.de

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Test result for 970814 on native sparc-sun-solaris2.5.1
@ 1997-08-17 17:08 Mumit Khan
  0 siblings, 0 replies; 10+ messages in thread
From: Mumit Khan @ 1997-08-17 17:08 UTC (permalink / raw)
  To: egcs

mrs@wrs.com (Mike Stump) writes:
> 
> The testsuite is the one from 970707.  What do people think about
> including either libstdc++, and/or testsuite in the egcs
> snapshots/releases?  I've not thought about it too much, but it seems
> like a reasonable thing to do.

Might be very useful, but then there's always download time issue for
those with slower net connection. I personally will welcome it.

btw, static template data members are not being instantiated breaking SGI
STL in libg++-2.8.0b6 (the allocator in particular). Also, I'm getting a 
core dump when compiling libstdc++ tests when compiling with '-g -O2', but 
with -g. Anybody else seen this? This is on a hppa1.1-hp-hpux10.20 using 
GAS from binutils 2.8.1. I'll investigate this further on other platforms.

Mumit

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Test result for 970814 on native sparc-sun-solaris2.5.1
@ 1997-08-16 17:50 Mike Stump
  0 siblings, 0 replies; 10+ messages in thread
From: Mike Stump @ 1997-08-16 17:50 UTC (permalink / raw)
  To: egcs

Normally, I don't think we should pollute up a list like this one with
testresults, but since we have a first snapshot, I thought I would do
one:

                === g++ Summary ===

# of expected passes            3214
# of unexpected successes       5
# of expected failures          109
# of untested testcases         6
/folk/mrs/bin/g++ version egcs-2.90.00 970814 (gcc2-970802 experimental)

The testsuite is the one from 970707.  What do people think about
including either libstdc++, and/or testsuite in the egcs
snapshots/releases?  I've not thought about it too much, but it seems
like a reasonable thing to do.

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

end of thread, other threads:[~1997-08-19  2:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-17 21:55 prototyping H.J. Lu
1997-08-17 22:18 ` prototyping Jeffrey A Law
1997-08-17 22:21 ` Test result for 970814 on native sparc-sun-solaris2.5.1 Alexandre Oliva
1997-08-17 23:29 ` f/zzz.o comparison failures Jeffrey A Law
1997-08-18  1:03 ` Test result for 970814 on native sparc-sun-solaris2.5.1 Jeffrey A Law
  -- strict thread matches above, loose matches on Subject: below --
1997-08-19  2:36 Mumit Khan
1997-08-19  1:10 H.J. Lu
1997-08-18  8:13 Klaus Kaempf
1997-08-17 17:08 Mumit Khan
1997-08-16 17:50 Mike Stump

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