Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 2010 00:23:40 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/contrib/gcc crtstuff.c
Message-ID:  <201008240023.o7O0NqDU095805@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rpaulo      2010-08-24 00:23:40 UTC

  FreeBSD src repository

  Modified files:
    contrib/gcc          crtstuff.c 
  Log:
  SVN rev 211729 on 2010-08-24 00:23:40Z by rpaulo
  
  Mark the following static variables as __used__ instead of __unused__:
  o force_to_data
  o __CTOR_LIST__
  o __do_global_dtors_aux_fini_array_entry
  o __frame_dummy_init_array_entry
  
  This is necessary because Clang is smart enough to optimize out these
  variables was they were marked as __unused__ (and they are also static).
  The end result was programs segfaulting because these symbols weren't
  present.
  
  This follows the upstream revision 159228 and the author of that
  revision (Jan Hubicka <jh at suse.de>) allowed us to backport this to our
  GPLv2 GCC.
  
  Discussed with: core
  
  Revision  Changes    Path
  1.2       +435 -173  src/contrib/gcc/crtstuff.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008240023.o7O0NqDU095805>