Let's backport speedups from 3.4 to 3.3

Karel Gardas kgardas@objectsecurity.com
Wed Feb 19 16:06:00 GMT 2003


On Thu, 13 Feb 2003, Mike Stump wrote:

> On Thursday, February 13, 2003, at 02:04 PM, Karel Gardas wrote:
> > Anything other which should I test?
>
> A regression test of the patch in mainline and in 3.4.
>
> make check
> [ save off baseline ]
> apply patch
> make clean && make bootstrap && make check
> contrib/cmp_logs before/gcc.sum after/gcc.sum
> [all the other .sum files]
>

Done. As I said this patch doesn't bring any speedup for our sources:
http://gcc.gnu.org/ml/gcc/2003-02/msg01014.html

I've configured gcc with:

thinkpad:~/cvs/gcc/obj$ ./gcc/g++ -v
Reading specs from
/home/karel/usr/local/gcc3.3.x/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3_3-branch/configure
--prefix=/home/karel/usr/local/gcc3.3.x --enable-shared --enable-threads
--disable-checking --enable-__cxa_atexit
Thread model: posix
gcc version 3.3 20030218 (prerelease)
thinkpad:~/cvs/gcc/obj$

As I said here: http://gcc.gnu.org/ml/gcc/2003-02/msg01267.html
I'm not able to use compare_test utility, so I used simple xxdiff for
quick review which files are different in important aspects (not only
directory path and starting time).

g++.sum - the same
g77.sum - the same
gcc.sum - different! The strange is that patched version is better...
(diff attached)
libjava.sum - different! Whole libjava testing seems to be quite strange
on my platform...(diff included)
libstdc++-v3.sum - the same
objc.sum - the same


Short note: I've updated both gcc3.3 source trees to yesterdays sources,
but this update conflicts in ggc-page.c in patched version in
ggc_pop_context functions at the begining of variable declaration. I've
modified sources to:

void
ggc_pop_context ()
{
  unsigned long omask;
  unsigned depth, i, e;
#ifdef ENABLE_CHECKING
  unsigned order;
#endif

I've attached whole patch to this email too.

What other should I test? (i.e. I'm interested in C++ compilation speedup
patches).

BTW: I don't have too much experience with gcc testing, so please excuse
me if I've done anything wrong and point me to the right direction.

Thanks,

Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: speedup1-patch.diff
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030219/c717a7bf/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc.sum.diff
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030219/c717a7bf/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libjava.sum.diff
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030219/c717a7bf/attachment-0002.ksh>


More information about the Gcc mailing list