public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
@ 2003-08-21 19:05 dhazeghi at yahoo dot com
  2003-08-23 17:49 ` [Bug target/12017] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-21 19:05 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: libobjc/sendmsg.c build ICE: in spill_failure, at
                    reload1.c:1862
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhazeghi at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: avr

Building gcc mainline for avr target ICEs when building libobjc:

/home/dara/mainline/objdir/gcc/xgcc -B/home/dara/mainline/objdir/gcc/ -nostdinc -B/home/
dara/mainline/objdir/avr/newlib/ -isystem /home/dara/mainline/objdir/avr/newlib/targ-include 
-isystem /home/dara/mainline/combined/newlib/libc/include -B/tmp//avr/bin/ -B/tmp//avr/lib/ 
-isystem /tmp//avr/include -isystem /tmp//avr/sys-include -L/home/dara/mainline/objdir/ld -c 
-I. -I/home/dara/mainline/combined/libobjc -O2 -g -O2 -W -Wall -Wwrite-strings -Wstrict-
prototypes -DIN_GCC -DIN_TARGET_LIBS -I/home/dara/mainline/combined/libobjc/objc -I/
home/dara/mainline/combined/libobjc/../gcc -I/home/dara/mainline/combined/libobjc/../gcc/
config -I../../gcc -I/home/dara/mainline/combined/libobjc/../include /home/dara/mainline/
combined/libobjc/sendmsg.c -o sendmsg.o
/home/dara/mainline/combined/libobjc/sendmsg.c:42:1: warning: "rtx" redefined
In file included from /home/dara/mainline/combined/libobjc/sendmsg.c:31:
/home/dara/mainline/combined/libobjc/../gcc/coretypes.h:58:1: warning: this is the location of 
the previous definition
/home/dara/mainline/combined/libobjc/sendmsg.c: In function `__objc_word_forward':

/home/dara/mainline/combined/libobjc/sendmsg.c:581: error: unable to find a register to spill in 
class `BASE_POINTER_REGS'
/home/dara/mainline/combined/libobjc/sendmsg.c:581: error: this is the insn:
(insn 49 48 50 1 /home/dara/mainline/combined/libobjc/sendmsg.c:578 (set (reg:QI 30 r30 [+6 
])
        (mem:QI (plus:HI (reg/v/f:HI 18 r18 [orig:45 res ] [45])
                (const_int 6 [0x6])) [0 S1 A8])) 9 {*movqi} (nil)
    (nil))
/home/dara/mainline/combined/libobjc/sendmsg.c:581: internal compiler error: in spill_failure, at 
reload1.c:1862
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [sendmsg.lo] Error 1

Here's a testcase:

typedef const struct objc_selector
{
  void *sel_id;
  const char *sel_types;
} *SEL;

typedef struct objc_object {
  struct objc_class* class_pointer;
} *id;

static id
__objc_word_forward (id rcv, SEL op, ...)
{
  void *args, *res;

  args = __builtin_apply_args ();
  res = __objc_forward (rcv, op, args);
  __builtin_return (res);
}

This reproduces the ICE with a cross cc1. No optimization flags are necessary.


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

* [Bug target/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
@ 2003-08-23 17:49 ` pinskia at gcc dot gnu dot org
  2003-10-01 21:46 ` eric at ecentral dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 17:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


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

* [Bug target/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
  2003-08-23 17:49 ` [Bug target/12017] " pinskia at gcc dot gnu dot org
@ 2003-10-01 21:46 ` eric at ecentral dot com
  2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: eric at ecentral dot com @ 2003-10-01 21:46 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


eric at ecentral dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric at ecentral dot com


------- Additional Comments From eric at ecentral dot com  2003-10-01 21:46 -------
The only known languages that builds for the AVR are C and C++. There has been 
work on an Ada port for the AVR here: <http://sourceforge.net/projects/avr-
ada>, but it is incomplete. Any others (such as Objective C) on the AVR are 
unknown.

Newlib is not used as the C library for the AVR. You need to get avr-libc: 
<http://savannah.nongnu.org/projects/avr-libc>

The avr-libc user manual (found online above) also has instructions on building 
and installing a full toolchain. The AVR toolchain is maintained on Linux, 
FreeBSD, and Windows, and is known to build on Solaris and recently Mac OSX. 
For the Windows port see WinAVR: <http://sourceforge.net/projects/winavr>. For 
information on OSX see recent posts to the avr-gcc-list mailing list: 
<http://www.avr1.org/mailman/listinfo/avr-gcc-list/>

Eric


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

* [Bug target/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (2 preceding siblings ...)
  2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
@ 2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
  2003-10-01 21:54 ` eric at ecentral dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-01 21:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-01 21:49:32
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-01 21:49 -------
Confirmed on the mainline (20030930).


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

* [Bug target/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
  2003-08-23 17:49 ` [Bug target/12017] " pinskia at gcc dot gnu dot org
  2003-10-01 21:46 ` eric at ecentral dot com
@ 2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
  2003-10-01 21:49 ` 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 @ 2003-10-01 21:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |SUSPENDED


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-01 21:49 -------
Suspending as there is no avr maintainer, yet.


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

* [Bug target/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (3 preceding siblings ...)
  2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
@ 2003-10-01 21:54 ` eric at ecentral dot com
  2003-10-01 21:58 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: eric at ecentral dot com @ 2003-10-01 21:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From eric at ecentral dot com  2003-10-01 21:54 -------
There are 2 AVR maintainers.
>From the MAINTAINERS file (3.3.1):
avr port		Denis Chertykov		denisc@overta.ru
avr port		Marek Michalkiewicz	marekm@linux.org.pl


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

* [Bug target/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (4 preceding siblings ...)
  2003-10-01 21:54 ` eric at ecentral dot com
@ 2003-10-01 21:58 ` pinskia at gcc dot gnu dot org
  2003-10-01 22:03 ` [Bug optimization/12017] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-01 21:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |NEW
   Last reconfirmed|2003-10-01 21:49:32         |2003-10-01 21:58:36
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-01 21:58 -------
Woops that was a different target I was think of.


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

* [Bug optimization/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (5 preceding siblings ...)
  2003-10-01 21:58 ` pinskia at gcc dot gnu dot org
@ 2003-10-01 22:03 ` pinskia at gcc dot gnu dot org
  2003-10-24 17:42 ` dhazeghi at yahoo dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-01 22:03 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |optimization
           Keywords|                            |build


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-01 22:03 -------
Note this is C code not Objective-C code any way.


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

* [Bug optimization/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (6 preceding siblings ...)
  2003-10-01 22:03 ` [Bug optimization/12017] " pinskia at gcc dot gnu dot org
@ 2003-10-24 17:42 ` dhazeghi at yahoo dot com
  2003-10-27 20:39 ` denisc at overta dot ru
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-10-24 17:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |denisc at overta dot ru
   Last reconfirmed|2003-10-01 21:58:36         |2003-10-24 17:40:22
               date|                            |


------- Additional Comments From dhazeghi at yahoo dot com  2003-10-24 17:40 -------
This problem is still present on mainline.

Denis, do you have any suggestions about what may be causing this issue? Thanks.


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

* [Bug optimization/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (7 preceding siblings ...)
  2003-10-24 17:42 ` dhazeghi at yahoo dot com
@ 2003-10-27 20:39 ` denisc at overta dot ru
  2003-10-27 21:43 ` dhazeghi at yahoo dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: denisc at overta dot ru @ 2003-10-27 20:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From denisc at overta dot ru  2003-10-27 20:30 -------
Subject: Re:  libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862

"dhazeghi at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> writes:

It's because __builtin_return completely unsupported.

Denis.


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

* [Bug optimization/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (8 preceding siblings ...)
  2003-10-27 20:39 ` denisc at overta dot ru
@ 2003-10-27 21:43 ` dhazeghi at yahoo dot com
  2003-10-30 17:55 ` denisc at overta dot ru
  2003-12-29  8:01 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-10-27 21:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dhazeghi at yahoo dot com  2003-10-27 21:38 -------
Fair enough. Then would it be possible to disable building of objc (and libobjc) on avr in configure, 
and document this as such? If this sounds good, I can make a patch...


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

* [Bug optimization/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (9 preceding siblings ...)
  2003-10-27 21:43 ` dhazeghi at yahoo dot com
@ 2003-10-30 17:55 ` denisc at overta dot ru
  2003-12-29  8:01 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: denisc at overta dot ru @ 2003-10-30 17:55 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From denisc at overta dot ru  2003-10-30 17:53 -------
Subject: Re:  libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862

"dhazeghi at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> writes:

> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12017
> 
> 
> 
> ------- Additional Comments From dhazeghi at yahoo dot com  2003-10-27 21:38 -------
> Fair enough. Then would it be possible to disable building of objc (and libobjc) on avr in configure, 
> and document this as such? If this sounds good, I can make a
> patch...

Please make it !

Denis.


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

* [Bug optimization/12017] libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862
  2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
                   ` (10 preceding siblings ...)
  2003-10-30 17:55 ` denisc at overta dot ru
@ 2003-12-29  8:01 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29  8:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-29 04:54 -------
Note the Objective-C front-end just produces C front-end trees so the problem is in avr 
back-end and needs to be fixed, this bug also is when using the C source code and not 
Objective-C source.
So this really needs to be fixed and not patched by not building libobjc.

-- 


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


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

end of thread, other threads:[~2003-12-29  4:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-21 19:05 [Bug target/12017] New: libobjc/sendmsg.c build ICE: in spill_failure, at reload1.c:1862 dhazeghi at yahoo dot com
2003-08-23 17:49 ` [Bug target/12017] " pinskia at gcc dot gnu dot org
2003-10-01 21:46 ` eric at ecentral dot com
2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
2003-10-01 21:49 ` pinskia at gcc dot gnu dot org
2003-10-01 21:54 ` eric at ecentral dot com
2003-10-01 21:58 ` pinskia at gcc dot gnu dot org
2003-10-01 22:03 ` [Bug optimization/12017] " pinskia at gcc dot gnu dot org
2003-10-24 17:42 ` dhazeghi at yahoo dot com
2003-10-27 20:39 ` denisc at overta dot ru
2003-10-27 21:43 ` dhazeghi at yahoo dot com
2003-10-30 17:55 ` denisc at overta dot ru
2003-12-29  8:01 ` 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).