This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

[patch]: pep.em obvious fix


Hello,

in pep.em I did an obvious transition failure on changing logic from
(1,-1) treating as underscoring to 1 == underscoring.

ChangeLog

* emultempl/pep.em (U_SIZE): Correct size for underscoring.

Index: pep.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/pep.em,v
retrieving revision 1.35
diff -u -3 -r1.35 pep.em
--- pep.em      11 May 2010 17:46:22 -0000      1.35
+++ pep.em      14 May 2010 18:49:12 -0000
@@ -306,7 +306,7 @@
 /* Get size of constant string for a possible underscore prefixed
    C visible symbol.  */
 #define U_SIZE(CSTR) \
-  (sizeof (CSTR) + pep_leading_underscore == 1 ? 0 : 1)
+  (sizeof (CSTR) + pep_leading_underscore != 1 ? 0 : 1)

 #define D(field,symbol,def,usc)  {&pep.field,sizeof(pep.field), def,
symbol,0, usc}

Ok, for apply?

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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