This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/43684] multiple 'set but not used' errors.
- From: "iains at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Apr 2010 11:30:46 -0000
- Subject: [Bug bootstrap/43684] multiple 'set but not used' errors.
- References: <bug-43684-19002@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from iains at gcc dot gnu dot org 2010-04-09 11:30 -------
Created an attachment (id=20346)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20346&action=view)
Remove (or wrap, as necessary) set but unused vars.
this replaces and consolidates the patches referenced above.
gcc/fortran/
PR bootstrap/43684
* gfortranspec.c: Do not expose vars only used by
HAVE_LD_STATIC_DYNAMIC targets unless compiling for such.
gcc/
PR bootstrap/43684
* varasm.c (default_assemble_visibility): Wrap vars that are
set, but unused, by targets without GAS.
* config/rs6000/rs6000.c: Remove set, but unused, vars.
* config/darwin.c: Ditto.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43684