public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809
@ 2005-03-08 13:10 sailors3 at comcast dot net
  2005-03-08 13:13 ` [Bug c/20382] " sailors3 at comcast dot net
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: sailors3 at comcast dot net @ 2005-03-08 13:10 UTC (permalink / raw)
  To: gcc-bugs

systemConfig/5xx_board_init.c:104 internal compiler error: in emit_move_insn, 
at expr.c:2809

gcc version 3.4.0-macraigor1

GNU C version 3.4.0-macraigor1 (powerpc-elf)
compiled by GNU C version 3.3.1 (cygming special).
I didn't configure GNU, Macraigor did, I didn't even know one could configure 
it, I haven't seen documentation on this.

command line is in file bug.rpt

I don't see how to attach the files you have asked for:

I'm running GNU on a Dell 8400 with WindowsXP and cygwin.

-- 
           Summary: internal compiler error in emit_move_insn, at
                    expr.c:2809
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sailors3 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: 3.3.1-macraigor1
  GCC host triplet: 3.4.0
GCC target triplet: 3.3.1


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


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

* [Bug c/20382] internal compiler error in emit_move_insn, at expr.c:2809
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
@ 2005-03-08 13:13 ` sailors3 at comcast dot net
  2005-03-08 13:16 ` sailors3 at comcast dot net
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sailors3 at comcast dot net @ 2005-03-08 13:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sailors3 at comcast dot net  2005-03-08 13:13 -------
Created an attachment (id=8360)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8360&action=view)
preprocessed input file


-- 


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


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

* [Bug c/20382] internal compiler error in emit_move_insn, at expr.c:2809
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
  2005-03-08 13:13 ` [Bug c/20382] " sailors3 at comcast dot net
@ 2005-03-08 13:16 ` sailors3 at comcast dot net
  2005-03-08 14:09 ` [Bug middle-end/20382] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sailors3 at comcast dot net @ 2005-03-08 13:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sailors3 at comcast dot net  2005-03-08 13:14 -------
Created an attachment (id=8361)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8361&action=view)
command line that triggered bug.


-- 


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


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

* [Bug middle-end/20382] internal compiler error in emit_move_insn, at expr.c:2809
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
  2005-03-08 13:13 ` [Bug c/20382] " sailors3 at comcast dot net
  2005-03-08 13:16 ` sailors3 at comcast dot net
@ 2005-03-08 14:09 ` pinskia at gcc dot gnu dot org
  2005-03-08 14:25 ` [Bug inline-asm/20382] internal compiler error with bogus asm output constraint falk at debian dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08 14:09 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (2 preceding siblings ...)
  2005-03-08 14:09 ` [Bug middle-end/20382] " pinskia at gcc dot gnu dot org
@ 2005-03-08 14:25 ` falk at debian dot org
  2005-03-09  2:49 ` sailors3 at comcast dot net
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: falk at debian dot org @ 2005-03-08 14:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2005-03-08 14:25 -------
Confirmed. This is triggered by a bogus argument for an output constraint.
Not a regression.

void f() {
  __asm__ (""  : "=r" ("r5"), "+r" ("r5"));
}



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |inline-asm
     Ever Confirmed|                            |1
  GCC build triplet|3.3.1-macraigor1            |
   GCC host triplet|3.4.0                       |
 GCC target triplet|3.3.1                       |
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |2.95.4 3.2.3 3.3.5 3.4.3
                   |                            |4.1.0
            Summary|internal compiler error in  |internal compiler error with
                   |emit_move_insn, at          |bogus asm output constraint
                   |expr.c:2809                 |


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (3 preceding siblings ...)
  2005-03-08 14:25 ` [Bug inline-asm/20382] internal compiler error with bogus asm output constraint falk at debian dot org
@ 2005-03-09  2:49 ` sailors3 at comcast dot net
  2005-03-09  9:19 ` falk at debian dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sailors3 at comcast dot net @ 2005-03-09  2:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sailors3 at comcast dot net  2005-03-09 02:48 -------
Subject: RE:  internal compiler error with bogus asm output constraint

Where can I find some documentation on using this extended asm format? I
have read all the GNU docs on it and can not understand how to use it.

Thanks,

Dave


-----Original Message-----
From: falk at debian dot org [mailto:gcc-bugzilla@gcc.gnu.org] 
Sent: Tuesday, March 08, 2005 6:25 AM
To: sailors3@comcast.net
Subject: [Bug inline-asm/20382] internal compiler error with bogus asm
output constraint


------- Additional Comments From falk at debian dot org  2005-03-08 14:25
-------
Confirmed. This is triggered by a bogus argument for an output constraint.
Not a regression.

void f() {
  __asm__ (""  : "=r" ("r5"), "+r" ("r5"));
}



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |inline-asm
     Ever Confirmed|                            |1
  GCC build triplet|3.3.1-macraigor1            |
   GCC host triplet|3.4.0                       |
 GCC target triplet|3.3.1                       |
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |2.95.4 3.2.3 3.3.5 3.4.3
                   |                            |4.1.0
            Summary|internal compiler error in  |internal compiler error
with
                   |emit_move_insn, at          |bogus asm output constraint
                   |expr.c:2809                 |


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



-- 


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (4 preceding siblings ...)
  2005-03-09  2:49 ` sailors3 at comcast dot net
@ 2005-03-09  9:19 ` falk at debian dot org
  2005-03-09 12:00 ` sailors3 at comcast dot net
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: falk at debian dot org @ 2005-03-09  9:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2005-03-09 09:14 -------
(In reply to comment #4)

> Where can I find some documentation on using this extended asm format? I
> have read all the GNU docs on it and can not understand how to use it.

Well, those docs are all we have. If you have any more concrete criticism,
feel free to file a bug about it.


-- 


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (5 preceding siblings ...)
  2005-03-09  9:19 ` falk at debian dot org
@ 2005-03-09 12:00 ` sailors3 at comcast dot net
  2005-03-09 12:31 ` falk at debian dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sailors3 at comcast dot net @ 2005-03-09 12:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sailors3 at comcast dot net  2005-03-09 12:00 -------
Subject: RE:  internal compiler error with bogus asm output constraint

Hello,

I apologize if my question sounded like criticism, It is really more of a
reflection on me (my ability to learn) than on GHU. 

I'm trying to get the compiler to accept this asm instruction:

/*		asm("ori		r5, r5, (ARCH_MSR_ME |
ARCH_MSR_RI)");*/

Using extended asm as this:

		__asm__ ("ori	%0,%1,%2"
				: "=r" ("r5")
				: "0" ("r5"), "g" (ARCH_MSR_ME |
ARCH_MSR_RI));

And the compiler is giving me:

Error: assignment of read-only location
Error: incompatible types of assignment

I guess I'm not properly interpreting the documentation on how to use
registers in the asm, is that correct?

Thanks,

Dave


-----Original Message-----
From: falk at debian dot org [mailto:gcc-bugzilla@gcc.gnu.org] 
Sent: Wednesday, March 09, 2005 1:15 AM
To: sailors3@comcast.net
Subject: [Bug inline-asm/20382] internal compiler error with bogus asm
output constraint


------- Additional Comments From falk at debian dot org  2005-03-09 09:14
-------
(In reply to comment #4)

> Where can I find some documentation on using this extended asm format? I
> have read all the GNU docs on it and can not understand how to use it.

Well, those docs are all we have. If you have any more concrete criticism,
feel free to file a bug about it.




-- 


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (6 preceding siblings ...)
  2005-03-09 12:00 ` sailors3 at comcast dot net
@ 2005-03-09 12:31 ` falk at debian dot org
  2005-03-10  2:42 ` sailors3 at comcast dot net
  2005-06-08 13:14 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: falk at debian dot org @ 2005-03-09 12:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2005-03-09 12:30 -------
(In reply to comment #6)

> I guess I'm not properly interpreting the documentation on how to use
> registers in the asm, is that correct?

Yes, that's correct :-) I suggest you ask at gcc-help@gcc.gnu.org, preferably
stating what it *really* is that you want (why do you want to generate this
asm?).


-- 


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (7 preceding siblings ...)
  2005-03-09 12:31 ` falk at debian dot org
@ 2005-03-10  2:42 ` sailors3 at comcast dot net
  2005-06-08 13:14 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: sailors3 at comcast dot net @ 2005-03-10  2:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sailors3 at comcast dot net  2005-03-10 02:42 -------
Subject: RE:  internal compiler error with bogus asm output constraint

Thanks, I'll give that a try.

Regards,

Dave


-----Original Message-----
From: falk at debian dot org [mailto:gcc-bugzilla@gcc.gnu.org] 
Sent: Wednesday, March 09, 2005 4:31 AM
To: sailors3@comcast.net
Subject: [Bug inline-asm/20382] internal compiler error with bogus asm
output constraint


------- Additional Comments From falk at debian dot org  2005-03-09 12:30
-------
(In reply to comment #6)

> I guess I'm not properly interpreting the documentation on how to use
> registers in the asm, is that correct?

Yes, that's correct :-) I suggest you ask at gcc-help@gcc.gnu.org,
preferably
stating what it *really* is that you want (why do you want to generate this
asm?).




-- 


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


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

* [Bug inline-asm/20382] internal compiler error with bogus asm output constraint
  2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
                   ` (8 preceding siblings ...)
  2005-03-10  2:42 ` sailors3 at comcast dot net
@ 2005-06-08 13:14 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-08 13:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-08 13:14 -------
Fixed in 4.1.0 by:
2005-05-08  Roger Sayle  <roger@eyesopen.com>
        
        PR inline-asm/8788
        * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
        operands.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|2.95.3 2.95.4 3.0.4 3.2.3   |2.95.3 2.95.4 3.0.4 3.2.3
                   |3.3.5 3.4.3 4.1.0           |3.3.5 3.4.3 4.0.0
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2005-06-08 13:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-08 13:10 [Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809 sailors3 at comcast dot net
2005-03-08 13:13 ` [Bug c/20382] " sailors3 at comcast dot net
2005-03-08 13:16 ` sailors3 at comcast dot net
2005-03-08 14:09 ` [Bug middle-end/20382] " pinskia at gcc dot gnu dot org
2005-03-08 14:25 ` [Bug inline-asm/20382] internal compiler error with bogus asm output constraint falk at debian dot org
2005-03-09  2:49 ` sailors3 at comcast dot net
2005-03-09  9:19 ` falk at debian dot org
2005-03-09 12:00 ` sailors3 at comcast dot net
2005-03-09 12:31 ` falk at debian dot org
2005-03-10  2:42 ` sailors3 at comcast dot net
2005-06-08 13:14 ` 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).