public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
To: Joseph Myers <joseph@codesourcery.com>
Cc: "linux-snps-arc@lists.infradead.org"
	<linux-snps-arc@lists.infradead.org>,
	 "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>
Subject: Re: [PATCH v5 01/14] ARC: ABI Implementation
Date: Fri, 17 Apr 2020 23:30:28 +0000	[thread overview]
Message-ID: <29e89b2c-3853-f3bf-bd28-f93a3b17ca03@synopsys.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2004172234560.1082@digraph.polyomino.org.uk>

On 4/17/20 3:37 PM, Joseph Myers wrote:
> On Wed, 8 Apr 2020, Vineet Gupta via Libc-alpha wrote:
> 
>> +#define reloc_index						\
>> +({								\
>> +  unsigned long int plt0 = D_PTR (l, l_info[DT_PLTGOT]);	\
>> +  unsigned long int pltn = reloc_arg;				\
>> +  /* Exclude PLT0 and PLT1.  */					\
>> +  unsigned long int idx = ((pltn - plt0) / 16 ) - 2;		\
> 
> There's a stray space between '16' and ')' here.

Fixed.


>> +/* Helper for generic ____longjmp_chk().  */
>> +#define JB_FRAME_ADDRESS(buf) ((void *) (unsigned long int) (buf[JB_SP]))
> 
> This comment should not use '()' (see the GNU Coding Standards, '()' 
> should not be appended to a function name to indicate that it's a 
> function, only to indicate a function call with no arguments).

Fixed.


>> +  __mcount_internal ((unsigned long int) frompc,			\
>> +		     (unsigned long int) __builtin_return_address(0));	\
> 
> Missing space before '(' in call to __builtin_return_address.

Fixed.


>> +#define TLS_LE(x)					\
>> +  ({ int *__result;					\
>> +     void *tp = __builtin_thread_pointer();		\
>> +     __asm__ ("add %0, %1, @" #x "@tpoff   \n"		\
>> +	  : "=r" (__result) : "r"(tp));	        	\
>> +     __result; })
>> +
>> +#define TLS_IE(x)					\
>> +  ({ int *__result;					\
>> +     void *tp = __builtin_thread_pointer();		\
>> +     __asm__ ("ld %0, [pcl, @" #x "@tlsie]      \n"     \
>> +	  "add %0, %1, %0                       \n"	\
>> +	  : "=&r" (__result) : "r" (tp));		\
>> +     __result; })
> 
> Missing spaces before '(' in calls to __builtin_thread_pointer.

Fixed.

  reply	other threads:[~2020-04-17 23:30 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-09  2:56 [PATCH v5 00/14] glibc port to ARC processors Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 01/14] ARC: ABI Implementation Vineet Gupta
2020-04-17 22:37   ` Joseph Myers
2020-04-17 23:30     ` Vineet Gupta [this message]
2020-04-09  2:56 ` [PATCH v5 02/14] ARC: startup and dynamic linking code Vineet Gupta
2020-04-17 22:42   ` Joseph Myers
2020-04-17 23:40     ` Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 03/14] ARC: Thread Local Storage support Vineet Gupta
2020-04-17 22:44   ` Joseph Myers
2020-04-17 23:43     ` Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 04/14] ARC: Atomics and Locking primitives Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 05/14] ARC: math soft float support Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 06/14] ARC: hardware floating point support Vineet Gupta
2020-04-17 22:59   ` Joseph Myers
2020-04-17 23:49     ` Vineet Gupta
2020-04-20 18:21       ` Joseph Myers
2020-04-09  2:56 ` [PATCH v5 07/14] ARC: Linux Syscall Interface Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 08/14] ARC: Linux ABI Vineet Gupta
2020-04-17 23:02   ` Joseph Myers
2020-04-17 23:52     ` Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 09/14] ARC: Linux Startup and Dynamic Loading Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 10/14] ARC: ABI lists Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 11/14] ARC: Update syscall-names.list for ARC specific syscalls Vineet Gupta
2020-04-17 23:05   ` Joseph Myers
2020-04-17 23:53     ` Vineet Gupta
2020-04-18 10:31       ` Florian Weimer
2020-04-20 18:24       ` Joseph Myers
2020-04-09  2:56 ` [PATCH v5 12/14] ARC: Build Infrastructure Vineet Gupta
2020-04-17 23:10   ` Joseph Myers
2020-04-18  0:12     ` Vineet Gupta
2020-04-18  5:46       ` Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 13/14] build-many-glibcs.py: Enable ARC builds Vineet Gupta
2020-04-17 23:12   ` Joseph Myers
2020-04-17 23:57     ` Vineet Gupta
2020-04-09  2:56 ` [PATCH v5 14/14] Documentation for ARC port Vineet Gupta
2020-04-17 23:13   ` Joseph Myers
2020-04-17 23:58     ` Vineet Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29e89b2c-3853-f3bf-bd28-f93a3b17ca03@synopsys.com \
    --to=vineet.gupta1@synopsys.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-snps-arc@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).