[Bug c/20382] New: internal compiler error in emit_move_insn, at expr.c:2809

2005-03-08 Thread sailors3 at comcast dot net
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


[Bug c/20382] internal compiler error in emit_move_insn, at expr.c:2809

2005-03-08 Thread sailors3 at comcast dot net

--- 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


[Bug c/20382] internal compiler error in emit_move_insn, at expr.c:2809

2005-03-08 Thread sailors3 at comcast dot net

--- 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


[Bug inline-asm/20382] internal compiler error with bogus asm output constraint

2005-03-08 Thread sailors3 at comcast dot net

--- 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:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 6:25 AM
To: [EMAIL PROTECTED]
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


[Bug inline-asm/20382] internal compiler error with bogus asm output constraint

2005-03-09 Thread sailors3 at comcast dot net

--- 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("orir5, 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:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 1:15 AM
To: [EMAIL PROTECTED]
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


[Bug inline-asm/20382] internal compiler error with bogus asm output constraint

2005-03-09 Thread sailors3 at comcast dot net

--- 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:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 4:31 AM
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED],
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