public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime
@ 2005-07-02  4:04 pinskia at gcc dot gnu dot org
  2005-07-02  4:05 ` [Bug objc/22274] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02  4:04 UTC (permalink / raw)
  To: gcc-bugs

These tests fail with the GNU runtime.
The following is a reduced testcase:
@interface NXConstantString
{
  Class isa;
  char *c_string;
  unsigned int len;
}
@end

void g(void)
{
 @"";
}

-- 
           Summary: [4.1 Regression] string[12].m fails with the gnu runtime
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug objc/22274] [4.1 Regression] string[12].m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
@ 2005-07-02  4:05 ` pinskia at gcc dot gnu dot org
  2005-07-02  4:06 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02  4:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-02 04:05 -------
The ICE I get is:
string1.m:13: internal compiler error: tree check: expected identifier_node, have type_decl in 
generate_strings, at objc/objc-act.c:2410
Please submit a full bug report,
with preprocessed source if appropriate.


Confirmed, via the testresults: http://gcc.gnu.org/ml/gcc-testresults/2005-07/msg00026.html.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlaski at apple dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-02 04:05:40
               date|                            |
   Target Milestone|---                         |4.1.0


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


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

* [Bug objc/22274] [4.1 Regression] string[12].m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
  2005-07-02  4:05 ` [Bug objc/22274] " pinskia at gcc dot gnu dot org
@ 2005-07-02  4:06 ` pinskia at gcc dot gnu dot org
  2005-07-05  0:40 ` [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m " hp at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-02  4:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-02 04:06 -------
This was caused by:
2005-06-29  Ziemowit Laski  <zlaski@apple.com>

        * objc-act.c (objc_build_internal_const_str_type): New function.
        (check_string_class_template): Use objc_get_class_ivars() instead
        of TYPE_FIELDS() to retrieve ivar list.
        (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather
        than the field itself.
        (objc_build_string_object): Synthesize a "__builtin_ObjCString"
        type and use it to lay out compile-time string objects.
        * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type):
        New.


-- 


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


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

* [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
  2005-07-02  4:05 ` [Bug objc/22274] " pinskia at gcc dot gnu dot org
  2005-07-02  4:06 ` pinskia at gcc dot gnu dot org
@ 2005-07-05  0:40 ` hp at gcc dot gnu dot org
  2005-07-06 21:11 ` zlaski at apple dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-07-05  0:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-07-05 00:40 -------
I was about to enter a separate report, but it seems the bug is the same as this
one, so I just add the following as a comment.  A few more failures than the
original report; I don't know what to make of that.

Last known to work on: "Wed Jun 29 13:20:13 UTC 2005".
With LAST_UPDATED: "Wed Jun 29 21:40:22 UTC 2005" up til
and including "Mon Jul  4 10:24:52 UTC 2005" I get these
objc failures:

objc.dg/const-str-5.m (test for excess errors)
objc/execute/string1.m compilation,  -O0
objc/execute/string1.m compilation,  -O1
objc/execute/string1.m compilation,  -O2
objc/execute/string1.m compilation,  -O3 -fomit-frame-pointer
objc/execute/string1.m compilation,  -O3 -g
objc/execute/string1.m compilation,  -Os
objc/execute/string2.m compilation,  -O0
objc/execute/string2.m compilation,  -O1
objc/execute/string2.m compilation,  -O2
objc/execute/string2.m compilation,  -O3 -fomit-frame-pointer
objc/execute/string2.m compilation,  -O3 -g
objc/execute/string2.m compilation,  -Os
objc/execute/string3.m compilation,  -O0
objc/execute/string3.m compilation,  -O1
objc/execute/string3.m compilation,  -O2
objc/execute/string3.m compilation,  -O3 -fomit-frame-pointer
objc/execute/string3.m compilation,  -O3 -g
objc/execute/string3.m compilation,  -Os
objc/execute/string4.m compilation,  -O0
objc/execute/string4.m compilation,  -O1
objc/execute/string4.m compilation,  -O2
objc/execute/string4.m compilation,  -O3 -fomit-frame-pointer
objc/execute/string4.m compilation,  -O3 -g
objc/execute/string4.m compilation,  -Os

With the message in the .log being similar for all:
x/gcc/testsuite/objc/execute/string1.m:17: internal compiler error: tree check:
expected identifier_node, have type_decl in generate_strings, at
objc/objc-act.c:2445


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at gcc dot gnu dot org
   Last reconfirmed|2005-07-02 04:05:40         |2005-07-05 00:40:13
               date|                            |
            Summary|[4.1 Regression]            |[4.1 Regression] string[1-
                   |string[12].m fails with the |4].m, const-str-5.m fails
                   |gnu runtime                 |with the gnu runtime


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


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

* [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-05  0:40 ` [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m " hp at gcc dot gnu dot org
@ 2005-07-06 21:11 ` zlaski at apple dot com
  2005-07-07  6:26 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: zlaski at apple dot com @ 2005-07-06 21:11 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |zlaski at apple dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-07-05 00:40:13         |2005-07-06 21:11:49
               date|                            |


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


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

* [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-07-06 21:11 ` zlaski at apple dot com
@ 2005-07-07  6:26 ` cvs-commit at gcc dot gnu dot org
  2005-07-07  6:33 ` zlaski at apple dot com
  2005-07-07 21:43 ` cvs-commit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-07  6:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-07 06:26 -------
Subject: Bug 22274

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	zlaski@gcc.gnu.org	2005-07-07 06:25:49

Modified files:
	gcc/objc       : ChangeLog objc-act.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/obj-c++.dg: gnu-runtime-1.mm gnu-runtime-2.mm 
	gcc/testsuite/objc.dg: gnu-runtime-2.m 

Log message:
	/objc/ChangeLog]
	2005-07-07  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/22274
	* objc-act.c (objc_build_string_object): For GNU-style constants,
	use the @interface type rather than the built-in type.
	
	[gcc/testsuite/ChangeLog]
	2005-07-07  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/22274
	* obj-c++.dg/gnu-runtime-[1-2].mm: New.
	* objc.dg/gnu-runtime-2.m: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/ChangeLog.diff?cvsroot=gcc&r1=1.50&r2=1.51
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&r1=1.284&r2=1.285
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5731&r2=1.5732
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/obj-c++.dg/gnu-runtime-1.mm.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/obj-c++.dg/gnu-runtime-2.mm.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/gnu-runtime-2.m.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-07-07  6:26 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-07  6:33 ` zlaski at apple dot com
  2005-07-07 21:43 ` cvs-commit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: zlaski at apple dot com @ 2005-07-07  6:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zlaski at apple dot com  2005-07-07 06:33 -------
Fixed for 4.1.

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


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


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

* [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m fails with the gnu runtime
  2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-07-07  6:33 ` zlaski at apple dot com
@ 2005-07-07 21:43 ` cvs-commit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-07 21:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-07 21:43 -------
Subject: Bug 22274

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-local-200502-branch
Changes by:	zlaski@gcc.gnu.org	2005-07-07 21:42:54

Modified files:
	gcc/testsuite  : ChangeLog.apple-ppc 
	gcc/objc       : ChangeLog.apple-ppc objc-act.c 
Added files:
	gcc/testsuite/obj-c++.dg: gnu-runtime-1.mm gnu-runtime-2.mm 
	gcc/testsuite/objc.dg: gnu-runtime-2.m 

Log message:
	[gcc/objc/ChangeLog.apple-ppc]
	2005-07-07  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/22274
	* objc-act.c (objc_build_string_object): For GNU-style constants,
	use the @interface type rather than the built-in type.
	
	[gcc/testsuite/ChangeLog.apple-ppc]
	2005-07-07  Ziemowit Laski  <zlaski@apple.com>
	
	PR objc/22274
	* obj-c++.dg/gnu-runtime-[1-2].mm: Bring over from mainline.
	* objc.dg/gnu-runtime-2.m: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=1.1.4.52&r2=1.1.4.53
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/obj-c++.dg/gnu-runtime-1.mm.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/obj-c++.dg/gnu-runtime-2.mm.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=NONE&r2=1.2.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/gnu-runtime-2.m.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=NONE&r2=1.2.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=1.1.4.13&r2=1.1.4.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&only_with_tag=apple-local-200502-branch&r1=1.266.4.17&r2=1.266.4.18



-- 


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


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

end of thread, other threads:[~2005-07-07 21:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-02  4:04 [Bug objc/22274] New: [4.1 Regression] string[12].m fails with the gnu runtime pinskia at gcc dot gnu dot org
2005-07-02  4:05 ` [Bug objc/22274] " pinskia at gcc dot gnu dot org
2005-07-02  4:06 ` pinskia at gcc dot gnu dot org
2005-07-05  0:40 ` [Bug objc/22274] [4.1 Regression] string[1-4].m, const-str-5.m " hp at gcc dot gnu dot org
2005-07-06 21:11 ` zlaski at apple dot com
2005-07-07  6:26 ` cvs-commit at gcc dot gnu dot org
2005-07-07  6:33 ` zlaski at apple dot com
2005-07-07 21:43 ` cvs-commit 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).