public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/43684]  New: multiple 'set but not used' errors.
@ 2010-04-08  8:58 iains at gcc dot gnu dot org
  2010-04-09 11:31 ` [Bug bootstrap/43684] " iains at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-08  8:58 UTC (permalink / raw)
  To: gcc-bugs

The following patches are proposed for both i686 and powerpc:

this is reasonably self-evident..
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00338.html

This one is in an area I've worked on - and I've checked that
-static-libgfortran is still doing its job (on i686-apple-darwin9).
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00329.html

This one is needed for both i686/powerpc - I have done the mechanical job of
removing the unused vars but cannot, of course, guarantee that the original
author intended them to be unused.
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00331.html

This one applies to powerpc only - I have done the mechanical job of removing
the unused vars but cannot, of course, guarantee that the original author
intended them to be unused.
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00345.html

PowerPC also needs the resolution to :
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681

bootstrapped on {i686,powerpc}-apple-darwin9, ia32-pc-linux
(tests are in progress).


-- 
           Summary: multiple 'set but not used' errors.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iains at gcc dot gnu dot org
GCC target triplet: *-apple-darwin9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43684


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

* [Bug bootstrap/43684] multiple 'set but not used' errors.
  2010-04-08  8:58 [Bug bootstrap/43684] New: multiple 'set but not used' errors iains at gcc dot gnu dot org
@ 2010-04-09 11:31 ` iains at gcc dot gnu dot org
  2010-04-09 13:35 ` iains at gcc dot gnu dot org
  2010-04-09 19:37 ` iains at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-09 11:31 UTC (permalink / raw)
  To: gcc-bugs



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


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

* [Bug bootstrap/43684] multiple 'set but not used' errors.
  2010-04-08  8:58 [Bug bootstrap/43684] New: multiple 'set but not used' errors iains at gcc dot gnu dot org
  2010-04-09 11:31 ` [Bug bootstrap/43684] " iains at gcc dot gnu dot org
@ 2010-04-09 13:35 ` iains at gcc dot gnu dot org
  2010-04-09 19:37 ` iains at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-09 13:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from iains at gcc dot gnu dot org  2010-04-09 13:34 -------
Subject: Bug 43684

Author: iains
Date: Fri Apr  9 13:34:33 2010
New Revision: 158164

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158164
Log:
gcc/
2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>

        PR bootstrap/43684
        * varasm.c (default_assemble_visibility): Wrap vars that are 
        set, but unused, by targets without GAS.
        * config/rs6000/rs6000.c: (paired_emit_vector_compare): 
        Remove set, but unused, vars.
        (rs6000_legitimize_tls_address): Likewise.
        (altivec_expand_dst_builtin): Likewise.
        * config/darwin.c (machopic_classify_symbol): Likewise.
        (machopic_indirection_name): Likewise.

gcc/fortran/
2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>

        PR bootstrap/43684
        * gfortranspec.c (lang_specific_driver): Do not expose vars 
        only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
        for such.



Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/darwin.c
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortranspec.c
    trunk/gcc/varasm.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43684


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

* [Bug bootstrap/43684] multiple 'set but not used' errors.
  2010-04-08  8:58 [Bug bootstrap/43684] New: multiple 'set but not used' errors iains at gcc dot gnu dot org
  2010-04-09 11:31 ` [Bug bootstrap/43684] " iains at gcc dot gnu dot org
  2010-04-09 13:35 ` iains at gcc dot gnu dot org
@ 2010-04-09 19:37 ` iains at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-09 19:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from iains at gcc dot gnu dot org  2010-04-09 19:36 -------
bootstrap completed on {powerpc,i686}-apple-darwin9 and x86_64-apple-darwin10 
@r158165


-- 

iains at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43684


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

end of thread, other threads:[~2010-04-09 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-08  8:58 [Bug bootstrap/43684] New: multiple 'set but not used' errors iains at gcc dot gnu dot org
2010-04-09 11:31 ` [Bug bootstrap/43684] " iains at gcc dot gnu dot org
2010-04-09 13:35 ` iains at gcc dot gnu dot org
2010-04-09 19:37 ` iains at gcc dot gnu dot org

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