public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR/ 708 ARC backend.
@ 2005-03-01 14:41 Ramana Radhakrishnan
  2005-03-01 14:45 ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Ramana Radhakrishnan @ 2005-03-01 14:41 UTC (permalink / raw)
  To: binutils; +Cc: Nick Clifton

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

Hi,

This trivial patch fixes PR gas/708. The suffix variable was not 
getting initialized right and hence was creating the segfault.


Also adding a testcase for the bug report.

Built and tested with a cross arc-elf32 on i686-linux.

Ok to commit ?

cheers
Ramana



-- 
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)


[-- Attachment #2: arc-gas-pr708 --]
[-- Type: text/plain, Size: 1230 bytes --]

Index: gas/config/tc-arc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arc.c,v
retrieving revision 1.31
diff -c -3 -p -r1.31 tc-arc.c
*** gas/config/tc-arc.c	23 Feb 2005 12:28:03 -0000	1.31
--- gas/config/tc-arc.c	1 Mar 2005 14:33:42 -0000
*************** md_assemble (str)
*** 568,574 ****
  					       NULL);
  		  else
  		    insn |= suf->value << operand->shift;
! 
  		  str = t;
  		  found = 1;
  		}
--- 568,574 ----
  					       NULL);
  		  else
  		    insn |= suf->value << operand->shift;
! 		  suffix=suf;
  		  str = t;
  		  found = 1;
  		}
*** /dev/null	2004-06-30 21:59:41.000000000 +0530
--- gas/testsuite/gas/arc/extensions.s	2005-03-01 19:53:47.000000000 +0530
***************
*** 0 ****
--- 1,4 ----
+ .extCondCode   isbusy, 0x12
+ 	.section .text
+ condcodeTest:
+ 	add.isbusy r0,r0,r1
*** /dev/null	2004-06-30 21:59:41.000000000 +0530
--- gas/testsuite/gas/arc/extensions.d	2005-03-01 20:02:07.000000000 +0530
***************
*** 0 ****
--- 1,9 ----
+ #as: -EL -marc8
+ #objdump: -dr -EL
+ 
+ .*: +file format elf32-.*arc
+ 
+ Disassembly of section .text:
+ 
+ 00000000 <condcodeTest>:
+    0:	12 02 00 40 	40000212     add.isbusy r0,r0,r1

[-- Attachment #3: arc-chlg --]
[-- Type: text/plain, Size: 249 bytes --]

2005-03-01  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>

	PR gas/708
	* config/tc-arc.c(md_assemble):Initialize suffix for extension
	suffixes also.
	* testsuite/gas/arc/extensions.s:New file 
	* testsuite/gas/arc/extensions.d:New file


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

* Re: [PATCH] Fix PR/ 708 ARC backend.
  2005-03-01 14:41 [PATCH] Fix PR/ 708 ARC backend Ramana Radhakrishnan
@ 2005-03-01 14:45 ` Nick Clifton
  2005-03-01 15:05   ` Ramana Radhakrishnan
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2005-03-01 14:45 UTC (permalink / raw)
  To: Ramana Radhakrishnan; +Cc: binutils

Hi Ramana,

> Built and tested with a cross arc-elf32 on i686-linux.
> 
> Ok to commit ?

Approved - but please put spaces around the equals sign in the 
assignment of suf to suffix.

Cheers
   Nick


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

* Re: [PATCH] Fix PR/ 708 ARC backend.
  2005-03-01 14:45 ` Nick Clifton
@ 2005-03-01 15:05   ` Ramana Radhakrishnan
  0 siblings, 0 replies; 3+ messages in thread
From: Ramana Radhakrishnan @ 2005-03-01 15:05 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

Nick Clifton wrote:
> Hi Ramana,
> 
>> Built and tested with a cross arc-elf32 on i686-linux.
>>
>> Ok to commit ?
> 
> 
> Approved - but please put spaces around the equals sign in the 
> assignment of suf to suffix.

Done !

cheers
Ramana

-- 
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)

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

end of thread, other threads:[~2005-03-01 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-01 14:41 [PATCH] Fix PR/ 708 ARC backend Ramana Radhakrishnan
2005-03-01 14:45 ` Nick Clifton
2005-03-01 15:05   ` Ramana Radhakrishnan

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