public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var.
@ 2010-04-07 23:47 iains at gcc dot gnu dot org
2010-04-08 7:00 ` [Bug bootstrap/43681] " jakub at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-07 23:47 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]
158099.
cc1: warnings being treated as errors
/GCC/gcc-live-trunk/gcc/expr.c: In function
âblock_move_libcall_safe_for_call_parmâ:
/GCC/gcc-live-trunk/gcc/expr.c:1254:8: error: variable âfnâ set but not
used
make[3]: *** [expr.o] Error 1
BUT:
======
static bool
block_move_libcall_safe_for_call_parm (void)
{
#if defined (REG_PARM_STACK_SPACE)
1254==>>> tree fn;
#endif
/* If arguments are pushed on the stack, then they're safe. */
if (PUSH_ARGS)
return true;
/* If registers go on the stack anyway, any argument is sure to clobber
an outgoing argument. */
#if defined (REG_PARM_STACK_SPACE)
fn = emit_block_move_libcall_fn (false);
if (OUTGOING_REG_PARM_STACK_SPACE ((!fn ? NULL_TREE : TREE_TYPE (fn)))
&& REG_PARM_STACK_SPACE (fn) != 0)
return false;
#endif
/* If any argument goes in memory, then it might clobber an outgoing
--
Summary: bootstrap fails with "unused" var message for an
apparently used var.
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: powerpc-apple-darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/43681] bootstrap fails with "unused" var message for an apparently used var.
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
@ 2010-04-08 7:00 ` jakub at gcc dot gnu dot org
2010-04-08 8:34 ` [Bug bootstrap/43681] [4.6 Regression] " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-04-08 7:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2010-04-08 07:00 -------
Created an attachment (id=20331)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20331&action=view)
gcc46-pr43681.patch
Untested patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/43681] [4.6 Regression] bootstrap fails with "unused" var message for an apparently used var.
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
2010-04-08 7:00 ` [Bug bootstrap/43681] " jakub at gcc dot gnu dot org
@ 2010-04-08 8:34 ` rguenth at gcc dot gnu dot org
2010-04-08 9:00 ` iains at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-08 8:34 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu dot org
Summary|bootstrap fails with |[4.6 Regression] bootstrap
|"unused" var message for an |fails with "unused" var
|apparently used var. |message for an apparently
| |used var.
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/43681] [4.6 Regression] bootstrap fails with "unused" var message for an apparently used var.
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
2010-04-08 7:00 ` [Bug bootstrap/43681] " jakub at gcc dot gnu dot org
2010-04-08 8:34 ` [Bug bootstrap/43681] [4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-04-08 9:00 ` iains at gcc dot gnu dot org
2010-04-08 10:13 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-08 9:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from iains at gcc dot gnu dot org 2010-04-08 08:59 -------
(In reply to comment #1)
> Created an attachment (id=20331)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20331&action=view) [edit]
> gcc46-pr43681.patch
>
> Untested patch.
yes, thanks that works.
- I couldn't see what to do there;
see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43684
for the ones I think I can resolve.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/43681] [4.6 Regression] bootstrap fails with "unused" var message for an apparently used var.
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-04-08 9:00 ` iains at gcc dot gnu dot org
@ 2010-04-08 10:13 ` jakub at gcc dot gnu dot org
2010-04-08 15:08 ` iains at gcc dot gnu dot org
2010-04-13 19:47 ` ubizjak at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-04-08 10:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2010-04-08 10:12 -------
Subject: Bug 43681
Author: jakub
Date: Thu Apr 8 10:12:35 2010
New Revision: 158111
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158111
Log:
PR bootstrap/43681
* expr.c (block_move_libcall_safe_for_call_parm): Avoid
set but not used variable warning.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/43681] [4.6 Regression] bootstrap fails with "unused" var message for an apparently used var.
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-04-08 10:13 ` jakub at gcc dot gnu dot org
@ 2010-04-08 15:08 ` iains at gcc dot gnu dot org
2010-04-13 19:47 ` ubizjak at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-04-08 15:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from iains at gcc dot gnu dot org 2010-04-08 15:07 -------
bootstrapped {powerpc,i686}-apple-darwin9.
this is fixed.
(other 'set but not used' issues at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43684 remain)
--
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=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug bootstrap/43681] [4.6 Regression] bootstrap fails with "unused" var message for an apparently used var.
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-04-08 15:08 ` iains at gcc dot gnu dot org
@ 2010-04-13 19:47 ` ubizjak at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2010-04-13 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ubizjak at gmail dot com 2010-04-13 19:46 -------
(In reply to comment #1)
> Created an attachment (id=20331)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20331&action=view) [edit]
> gcc46-pr43681.patch
>
> Untested patch.
How about:
Index: expr.c
===================================================================
--- expr.c (revision 158277)
+++ expr.c (working copy)
@@ -1251,7 +1251,7 @@
block_move_libcall_safe_for_call_parm (void)
{
#if defined (REG_PARM_STACK_SPACE)
- tree fn;
+ tree fn ATTRIBUTE_UNUSED;
#endif
/* If arguments are pushed on the stack, then they're safe. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43681
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-04-13 19:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-07 23:47 [Bug bootstrap/43681] New: bootstrap fails with "unused" var message for an apparently used var iains at gcc dot gnu dot org
2010-04-08 7:00 ` [Bug bootstrap/43681] " jakub at gcc dot gnu dot org
2010-04-08 8:34 ` [Bug bootstrap/43681] [4.6 Regression] " rguenth at gcc dot gnu dot org
2010-04-08 9:00 ` iains at gcc dot gnu dot org
2010-04-08 10:13 ` jakub at gcc dot gnu dot org
2010-04-08 15:08 ` iains at gcc dot gnu dot org
2010-04-13 19:47 ` ubizjak at gmail dot com
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).