This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Update xstormy16 ABI documentation


Hi Geoff,

  May I have permission to apply the patch below please ?

  It updates the stormy-abi document in gcc/config/stormy16 to include
  the R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
  R_XSTORMY16_12 relocs, and also adds a description of the 'Overflow'
  field.

Cheers
        Nick

2003-05-06  Nick Clifton  <nickc@redhat.com>

	* config/stormy16/stormy-abi: Update to include
	R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
	R_XSTORMY16_12 relocs.

Index: gcc/config/stormy16/stormy-abi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy-abi,v
retrieving revision 1.6
diff -c -3 -p -w -r1.6 stormy-abi
*** gcc/config/stormy16/stormy-abi	24 Sep 2002 12:49:04 -0000	1.6
--- gcc/config/stormy16/stormy-abi	6 May 2003 12:03:12 -0000
*************** R_XSTORMY16_PC16		5	16	S + A - P	signed
*** 140,151 ****
  R_XSTORMY16_PC8		6	8	S + A - P	signed
  R_XSTORMY16_REL_12	7	16:12:0	S + A - P	signed
  R_XSTORMY16_24		8	32:23:1	(S + A) >> 1	unsigned
! R_XSTORMY16_GNU_VTINHERIT 9	n/a	n/a		n/a
! R_XSTORMY16_GNU_VTENTRY	10	n/a	n/a		n/a
! 
! In the 'Calculation' column, 'S' is the value of the symbol to which
! the reloc refers, 'A' is the addend, and 'P' represents the place of
! the storage unit being relocated.
  
  In the 'Field' column, the first number indicates whether the
  relocation refers to a byte, word or doubleword.  The second number,
--- 140,151 ----
  R_XSTORMY16_PC8            6       8       S + A - P      signed
  R_XSTORMY16_REL_12         7      16:12:0  S + A - P      signed
  R_XSTORMY16_24             8      32:23:1 (S + A) >> 1    unsigned
! R_XSTORMY16_FPTR16         9      16       S + A          either
! R_XSTORMY16_LO16           10     16       S + A          none
! R_XSTORMY16_HI16           11     32:16:16 S + A          none
! R_XSTORMY16_12             12     16:12:0  S + A          signed
! R_XSTORMY16_GNU_VTINHERIT  128    n/a      n/a            n/a
! R_XSTORMY16_GNU_VTENTRY    129    n/a      n/a            n/a
  
  In the 'Field' column, the first number indicates whether the
  relocation refers to a byte, word or doubleword.  The second number,
*************** if any, indicates the size of the bit-fi
*** 153,155 ****
--- 153,167 ----
  is to occur (and also the size for overflow checking).  The third
  number indicates the first bit of the bit-field in the word or
  doubleword, counting the LSB as bit 0.
+ 
+ In the 'Calculation' column, 'S' is the value of the symbol to which
+ the reloc refers, 'A' is the addend, and 'P' represents the place of
+ the storage unit being relocated.
+ 
+ In the 'Overflow' column, 'none' means that any overflow of the
+ computation perfomed in the 'Calculation' column is ignored.
+ 'signed' means that the overflow is only reported if it happens when
+ the values are treated as signed quantities.  'unsigned' is the same,
+ except that the values are treated as unsigned qunatities.  'either'
+ means that overflow is reported for either signed or unsigned
+ overflow.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]