This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.2 stuff


> >     2.) Exception handling in shared libraries.
[...]
>    To be specific about what OS's I'm referring to:
[...]
>    Solaris 2.5 or later
>    Linux 2.x (probably 2.2.x)

Then I suggest you file a bug report, with specific source code. The
example attached works for me on i586-pc-linux-gnu and
sparc-sun-solaris2.5.1, with egcs 1.1 and later (didn't test earlier).

Regards,
Martin

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1999-04-03 01:38 CEST by <martin@mira>.
# Source directory was `/home/martin/tmp/s'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#     65 -rw-rw-r-- a.cc
#     89 -rw-rw-r-- b.cc
#     87 -rw-rw-r-- Makefile
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    set `$dir/gettext --version 2>&1`
    if test "$3" = GNU
    then
      gettext_dir=$dir
    fi
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  $echo 'WARNING: not restoring timestamps.  Consider getting and'
  $echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
if mkdir _sh22357; then
  $echo 'x -' 'creating lock directory'
else
  $echo 'failed to create lock directory'
  exit 1
fi
# ============= a.cc ==============
if test -f 'a.cc' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'a.cc' '(file already exists)'
else
  $echo 'x -' extracting 'a.cc' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'a.cc' &&
void f()
{
X  throw 1;
}
X
extern void g();
X
int main()
{
X  g();
}
SHAR_EOF
  $shar_touch -am 0403013499 'a.cc' &&
  chmod 0664 'a.cc' ||
  $echo 'restore of' 'a.cc' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'a.cc:' 'MD5 check failed'
339517457b663c446ea16a3932aca1a6  a.cc
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'a.cc'`"
    test 65 -eq "$shar_count" ||
    $echo 'a.cc:' 'original size' '65,' 'current size' "$shar_count!"
  fi
fi
# ============= b.cc ==============
if test -f 'b.cc' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'b.cc' '(file already exists)'
else
  $echo 'x -' extracting 'b.cc' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'b.cc' &&
#include <stdio.h>
X
void f();
X
void g()
try{
X  f();
}catch(int){
X  printf("caught\n");
}
SHAR_EOF
  $shar_touch -am 0403013599 'b.cc' &&
  chmod 0664 'b.cc' ||
  $echo 'restore of' 'b.cc' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'b.cc:' 'MD5 check failed'
80d5a2da7ac59fe00b3ad52a5bd6f5ae  b.cc
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'b.cc'`"
    test 89 -eq "$shar_count" ||
    $echo 'b.cc:' 'original size' '89,' 'current size' "$shar_count!"
  fi
fi
# ============= Makefile ==============
if test -f 'Makefile' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'Makefile' '(file already exists)'
else
  $echo 'x -' extracting 'Makefile' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Makefile' &&
a:	a.cc b.so
X	g++ -export-dynamic -o a a.cc b.so
X
b.so:	b.cc
X	g++ -shared -o b.so b.cc
SHAR_EOF
  $shar_touch -am 0403013699 'Makefile' &&
  chmod 0664 'Makefile' ||
  $echo 'restore of' 'Makefile' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'Makefile:' 'MD5 check failed'
2097ed674305d607d116bdfbce85303d  Makefile
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'Makefile'`"
    test 87 -eq "$shar_count" ||
    $echo 'Makefile:' 'original size' '87,' 'current size' "$shar_count!"
  fi
fi
rm -fr _sh22357
exit 0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]