public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/27438]  New: '_OBJC_INSTANCE_0' defined but not used warning
@ 2006-05-04 22:19 tima dot vaisburd at gmail dot com
  2006-05-04 22:21 ` [Bug objc/27438] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: tima dot vaisburd at gmail dot com @ 2006-05-04 22:19 UTC (permalink / raw)
  To: gcc-bugs

The compiler emits the series of warnings like

GSCategories.m:50: warning: '_OBJC_INSTANCE_0' defined but not used
[...]

when it sees the construct @"string".

According to Anrew Pinski (pinskia@physics.uc.edu) this is a compiler bug


-- 
           Summary: '_OBJC_INSTANCE_0' defined but not used warning
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tima dot vaisburd at gmail dot com
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


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


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

* [Bug objc/27438] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
@ 2006-05-04 22:21 ` pinskia at gcc dot gnu dot org
  2006-05-04 22:26 ` tima dot vaisburd at gmail dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-04 22:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-04 22:21 -------
And I asked you to read http://gcc.gnu.org/bugs.html which means attaching the
preprocessed source.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug objc/27438] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
  2006-05-04 22:21 ` [Bug objc/27438] " pinskia at gcc dot gnu dot org
@ 2006-05-04 22:26 ` tima dot vaisburd at gmail dot com
  2006-05-05  3:18 ` [Bug objc/27438] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time) pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tima dot vaisburd at gmail dot com @ 2006-05-04 22:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tima dot vaisburd at gmail dot com  2006-05-04 22:25 -------
Created an attachment (id=11378)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11378&action=view)
Test case

Compilation made by:

gcc -c -save-temps -m64 -mcpu=v9 NSArchiver.m -c \
      -MMD -MP -I/usr/local/geneva/packages/include -DGNUSTEP_TARGET_DIR=\".\"
-DGNUSTEP_TARGET_CPU=\"sparc\" -DGNUSTEP_TARGET_OS=\"solaris2.8\"
-DGNUSTEP_FLATTENED=\"yes\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\" -Wall
-Wno-char-subscripts -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1
-DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fpic -fPIC -DGSWARN -DGSDIAGNOSE -g -O2
-fno-strict-aliasing -fgnu-runtime -fconstant-string-class=NSConstantString
-I../Headers/Additions -I../Headers -I./. -I.
-I/usr/local/geneva/packages/include
-I/usr/local/geneva/packages/GNUstep/System/Library/Headers
-I/usr/local/geneva/packages/GNUstep/System/Library/Headers
-I/usr/local/geneva/packages/include/libxml2 -IGNUstep/Library/Headers
-I/usr/local/geneva/packages/GNUstep/Local/Library/Headers
-I/usr/local/geneva/packages/GNUstep/System/Library/Headers \
       -o shared_obj/NSArchiver.o


-- 


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


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

* [Bug objc/27438] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time)
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
  2006-05-04 22:21 ` [Bug objc/27438] " pinskia at gcc dot gnu dot org
  2006-05-04 22:26 ` tima dot vaisburd at gmail dot com
@ 2006-05-05  3:18 ` pinskia at gcc dot gnu dot org
  2006-05-05  7:06 ` [Bug objc/27438] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-05  3:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-05-05 03:18 -------
Reducing.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|'_OBJC_INSTANCE_0' defined  |'_OBJC_INSTANCE_0' defined
                   |but not used warning        |but not used warning (unit
                   |                            |at a time)


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


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

* [Bug objc/27438] [4.1/4.2 Regression] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time)
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (2 preceding siblings ...)
  2006-05-05  3:18 ` [Bug objc/27438] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time) pinskia at gcc dot gnu dot org
@ 2006-05-05  7:06 ` pinskia at gcc dot gnu dot org
  2006-05-05  7:31 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-05  7:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-05-05 07:06 -------
Small testcase with the GNU runtime:
@interface NXConstantString
{
  void *isa;
  const char * const nxcsptr;
  const unsigned int nxcslen;
}
@end
NXConstantString *a =   @"NSInconsistentArchiveException";


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|sparc-sun-solaris2.8        |
   GCC host triplet|sparc-sun-solaris2.8        |
 GCC target triplet|sparc-sun-solaris2.8        |
           Keywords|                            |diagnostic
      Known to fail|                            |4.1.0 4.2.0
      Known to work|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-05 07:06:12
               date|                            |
            Summary|'_OBJC_INSTANCE_0' defined  |[4.1/4.2 Regression]
                   |but not used warning (unit  |'_OBJC_INSTANCE_0' defined
                   |at a time)                  |but not used warning (unit
                   |                            |at a time)
   Target Milestone|---                         |4.1.1


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


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

* [Bug objc/27438] [4.1/4.2 Regression] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time)
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (3 preceding siblings ...)
  2006-05-05  7:06 ` [Bug objc/27438] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-05-05  7:31 ` pinskia at gcc dot gnu dot org
  2006-05-14 22:35 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-05  7:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-05-05 07:31 -------
(In reply to comment #4)
> Small testcase with the GNU runtime:
Note only -Wall -funit-at-a-time is enough to reproduce the bug.


-- 


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


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

* [Bug objc/27438] [4.1/4.2 Regression] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time)
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (4 preceding siblings ...)
  2006-05-05  7:31 ` pinskia at gcc dot gnu dot org
@ 2006-05-14 22:35 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-14 22:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2006-05-14 22:33 -------
P5: Objective-C is not release-critical.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug objc/27438] [4.1/4.2 Regression] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time)
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (5 preceding siblings ...)
  2006-05-14 22:35 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
  2007-01-22 17:35 ` [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mmitchel at gcc dot gnu dot org  2006-05-25 02:36 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (6 preceding siblings ...)
  2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
@ 2007-01-22 17:35 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:01 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-22 17:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2007-01-22 17:35 -------
I have a simple fix.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (7 preceding siblings ...)
  2007-01-22 17:35 ` [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning pinskia at gcc dot gnu dot org
@ 2007-01-24  6:01 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:06 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2007-01-24 06:01 -------
Subject: Bug 27438

Author: pinskia
Date: Wed Jan 24 06:01:09 2007
New Revision: 121102

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121102
Log:
2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc-act.c (objc_add_static_instance): Mark the decl as
        TREE_USED.

2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc.dg/const-str-12.m: New test.


Added:
    trunk/gcc/testsuite/objc.dg/const-str-12.m
Modified:
    trunk/gcc/objc/ChangeLog
    trunk/gcc/objc/objc-act.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (8 preceding siblings ...)
  2007-01-24  6:01 ` pinskia at gcc dot gnu dot org
@ 2007-01-24  6:06 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2007-01-24 06:06 -------
Subject: Bug 27438

Author: pinskia
Date: Wed Jan 24 06:06:07 2007
New Revision: 121103

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121103
Log:
2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc-act.c (objc_add_static_instance): Mark the decl as
        TREE_USED.

2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc.dg/const-str-12.m: New test.



Added:
    branches/gcc-4_1-branch/gcc/testsuite/objc.dg/const-str-12.m
      - copied unchanged from r121102,
trunk/gcc/testsuite/objc.dg/const-str-12.m
Modified:
    branches/gcc-4_1-branch/gcc/objc/ChangeLog
    branches/gcc-4_1-branch/gcc/objc/objc-act.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (10 preceding siblings ...)
  2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
@ 2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2007-01-24 06:06 -------
Subject: Bug 27438

Author: pinskia
Date: Wed Jan 24 06:06:29 2007
New Revision: 121104

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121104
Log:
2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc-act.c (objc_add_static_instance): Mark the decl as
        TREE_USED.

2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc.dg/const-str-12.m: New test.



Added:
    branches/gcc-4_2-branch/gcc/testsuite/objc.dg/const-str-12.m
      - copied unchanged from r121102,
trunk/gcc/testsuite/objc.dg/const-str-12.m
Modified:
    branches/gcc-4_2-branch/gcc/objc/ChangeLog
    branches/gcc-4_2-branch/gcc/objc/objc-act.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning
  2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
                   ` (9 preceding siblings ...)
  2007-01-24  6:06 ` pinskia at gcc dot gnu dot org
@ 2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
  2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-24  6:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2007-01-24 06:06 -------
Subject: Bug 27438

Author: pinskia
Date: Wed Jan 24 06:06:29 2007
New Revision: 121104

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121104
Log:
2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc-act.c (objc_add_static_instance): Mark the decl as
        TREE_USED.

2007-01-23  Andrew Pinski  <pinskia@gmail.com>

        PR objc/27438
        * objc.dg/const-str-12.m: New test.



Added:
    branches/gcc-4_2-branch/gcc/testsuite/objc.dg/const-str-12.m
      - copied unchanged from r121102,
trunk/gcc/testsuite/objc.dg/const-str-12.m
Modified:
    branches/gcc-4_2-branch/gcc/objc/ChangeLog
    branches/gcc-4_2-branch/gcc/objc/objc-act.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


------- Comment #12 from pinskia at gcc dot gnu dot org  2007-01-24 06:06 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-01-24  6:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 22:19 [Bug objc/27438] New: '_OBJC_INSTANCE_0' defined but not used warning tima dot vaisburd at gmail dot com
2006-05-04 22:21 ` [Bug objc/27438] " pinskia at gcc dot gnu dot org
2006-05-04 22:26 ` tima dot vaisburd at gmail dot com
2006-05-05  3:18 ` [Bug objc/27438] '_OBJC_INSTANCE_0' defined but not used warning (unit at a time) pinskia at gcc dot gnu dot org
2006-05-05  7:06 ` [Bug objc/27438] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-05-05  7:31 ` pinskia at gcc dot gnu dot org
2006-05-14 22:35 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
2007-01-22 17:35 ` [Bug objc/27438] [4.1/4.2/4.3 Regression] [unit-at-a-time] '_OBJC_INSTANCE_0' defined but not used warning pinskia at gcc dot gnu dot org
2007-01-24  6:01 ` pinskia at gcc dot gnu dot org
2007-01-24  6:06 ` pinskia at gcc dot gnu dot org
2007-01-24  6:07 ` pinskia at gcc dot gnu dot org
2007-01-24  6:07 ` pinskia 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).