[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-06-10 Thread iains at gcc dot gnu dot org


--- Comment #10 from iains at gcc dot gnu dot org  2010-06-10 13:04 ---
back-ported to 4.5. release branch as r160546.


-- 


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-04-12 Thread mrs at gcc dot gnu dot org


--- Comment #9 from mrs at gcc dot gnu dot org  2010-04-12 21:32 ---
Agreed.


-- 

mrs at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-04-07 Thread iains at gcc dot gnu dot org


--- Comment #7 from iains at gcc dot gnu dot org  2010-04-07 19:58 ---
Subject: Bug 35996

Author: iains
Date: Wed Apr  7 19:57:46 2010
New Revision: 158083

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158083
Log:
gcc/objc/Changelog:
2010-04-07  Iain Sandoe ia...@gcc.gnu.org

PR objc/35996
* objc-act.c (objc_init): Warn that -fobjc-gc is ignored for
-fgnu-runtime and set flag_objc_gc to zero.

testsuite:
2010-04-07  Iain Sandoe ia...@gcc.gnu.org

PR objc/35996
* objc.dg/objc-gc-4.m: Run for all targets, prune new warning.
* obj-c++.dg/objc-gc-3.mm: Ditto.


Modified:
trunk/gcc/objc/ChangeLog
trunk/gcc/objc/objc-act.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/obj-c++.dg/objc-gc-3.mm
trunk/gcc/testsuite/objc.dg/objc-gc-4.m


-- 


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-04-07 Thread iains at gcc dot gnu dot org


--- Comment #8 from iains at gcc dot gnu dot org  2010-04-07 20:05 ---
AFAICT, this should be fixed now.


-- 

iains at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||iains at gcc dot gnu dot org


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-04-02 Thread mrs at gcc dot gnu dot org


--- Comment #6 from mrs at gcc dot gnu dot org  2010-04-03 00:05 ---
Ok.


-- 


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-03-26 Thread howarth at nitro dot med dot uc dot edu


--- Comment #4 from howarth at nitro dot med dot uc dot edu  2010-03-26 
17:40 ---
*** Bug 43535 has been marked as a duplicate of this bug. ***


-- 

howarth at nitro dot med dot uc dot edu changed:

   What|Removed |Added

 CC||howarth at nitro dot med dot
   ||uc dot edu


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2010-03-26 Thread developer at sandoe-acoustics dot co dot uk


--- Comment #5 from developer at sandoe-acoustics dot co dot uk  2010-03-26 
18:20 ---
Created an attachment (id=20215)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20215action=view)
warn that -fobjc-gc is ignored for -fgnu-runtime and set flag_objc_gc to 0

a warning seems enough here .. although error-out would be possible.

NOTE; there's no reason to skip this the tests on linux - I've taken out the
*-*-darwin and confirmed that the tests pass on ia32-pc-linux


-- 


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2008-12-27 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2008-12-28 06:42 ---
The GNU runtime does not need help from the compiler to do the job. 

-fobjc-gc should error out if used with the GNU runtime at compile time.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   GCC host triplet|x86_64-linux-gnu|
 GCC target triplet|x86_64-linux-gnu|
   Keywords|ice-on-valid-code   |ice-on-invalid-code
   Last reconfirmed|-00-00 00:00:00 |2008-12-28 06:42:39
   date||


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2008-05-15 Thread daekharel at gmail dot com


--- Comment #2 from daekharel at gmail dot com  2008-05-16 02:57 ---
I'm not sure that's the case, as I've taken a look at the gcc libobjc code, and
it does seem to have some support for boehm GC integration. For example, a
fragment of code from gcc-4.2.3/libobjc/objects.c runs as follows:

#if OBJC_WITH_GC
  if (CLS_ISCLASS (class))
new = (id) GC_malloc_explicitly_typed (class-instance_size,
   class-gc_object_type);
#else
  if (CLS_ISCLASS (class))
new = (*_objc_object_alloc) (class);
#endif

Of course, perhaps that's just preliminary code for support in some future
version, and the vanilla gcc runtime doesn't support --enable-objc-gc. But if
that's so, there's still the question of why it ICEs on x86-64 but not on x86.
And also of the info page 7.3 regarding garbage collection in the GNU (not
NeXT) runtime.


-- 

daekharel at gmail dot com changed:

   What|Removed |Added

 CC||daekharel at gmail dot com


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



[Bug objc/35996] ICE while building simple ObjC code with -fobjc-gc

2008-05-04 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2008-05-05 05:42 ---
IIRC -fobjc-gc is only useful for the NeXT runtime.


-- 


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