diff for duplicates of <20120207180423.GD2388@redhat.com> diff --git a/a/1.txt b/N1/1.txt index 8dabf97..745eb57 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -3,14 +3,14 @@ On Tue, Feb 07, 2012 at 09:48:24PM +0530, Rabin Vincent wrote: > > On Sat, Jan 28, 2012 at 19:05, Rabin Vincent <rabin@rab.in> wrote: > > Some versions of ARM GCC which do support asm goto, have problems -> > handling the the %c specifier. ?Since we need the %c to support jump +> > handling the the %c specifier. Since we need the %c to support jump > > labels on ARM, detect that too in the asm goto detection script to avoid > > build errors with these versions. > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637 > > > > Cc: Jason Baron <jbaron@redhat.com> -> > Cc: linux-kernel at vger.kernel.org +> > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Rabin Vincent <rabin@rab.in> > > Could you please ack this patch if it's OK for you? Then I could try to @@ -19,33 +19,33 @@ On Tue, Feb 07, 2012 at 09:48:24PM +0530, Rabin Vincent wrote: > Thanks. > > > --- -> > ?scripts/gcc-goto.sh | ? 18 +++++++++++++++++- -> > ?1 files changed, 17 insertions(+), 1 deletions(-) +> > scripts/gcc-goto.sh | 18 +++++++++++++++++- +> > 1 files changed, 17 insertions(+), 1 deletions(-) > > > > diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh > > index 98cffcb..9b744de 100644 > > --- a/scripts/gcc-goto.sh > > +++ b/scripts/gcc-goto.sh > > @@ -2,4 +2,20 @@ -> > ?# Test for gcc 'asm goto' support -> > ?# Copyright (C) 2010, Jason Baron <jbaron@redhat.com> +> > # Test for gcc 'asm goto' support +> > # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> > > > > -echo "int main(void) { entry: asm goto (\"\"::::entry); return 0; }" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" > > +cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" > > +int main(void) > > +{ > > +#ifdef __arm__ -> > + ? ? ? /* -> > + ? ? ? ?* Not related to asm goto, but used by jump label -> > + ? ? ? ?* and broken on some ARM GCC versions (see GCC Bug 48637). -> > + ? ? ? ?*/ -> > + ? ? ? static struct { int dummy; int state; } tp; -> > + ? ? ? asm ("@ %c0" :: "i" (&tp.state)); +> > + /* +> > + * Not related to asm goto, but used by jump label +> > + * and broken on some ARM GCC versions (see GCC Bug 48637). +> > + */ +> > + static struct { int dummy; int state; } tp; +> > + asm ("@ %c0" :: "i" (&tp.state)); > > +#endif > > + > > +entry: -> > + ? ? ? asm goto ("" :::: entry); -> > + ? ? ? return 0; +> > + asm goto ("" :::: entry); +> > + return 0; > > +} > > +END > > -- diff --git a/a/content_digest b/N1/content_digest index 8bc9a13..0b61937 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,10 +1,12 @@ "ref\01327757725-10114-1-git-send-email-rabin@rab.in\0" "ref\01327757725-10114-6-git-send-email-rabin@rab.in\0" "ref\0CAH+eYFDzsWjrxOFiYcYO6sgPDusxcHOTQcjvN8hDaEPG+=LgAQ@mail.gmail.com\0" - "From\0jbaron@redhat.com (Jason Baron)\0" - "Subject\0[PATCHv2 5/6] jump label: detect %c support for ARM\0" + "From\0Jason Baron <jbaron@redhat.com>\0" + "Subject\0Re: [PATCHv2 5/6] jump label: detect %c support for ARM\0" "Date\0Tue, 7 Feb 2012 13:04:23 -0500\0" - "To\0linux-arm-kernel@lists.infradead.org\0" + "To\0Rabin Vincent <rabin@rab.in>\0" + "Cc\0LKML <linux-kernel@vger.kernel.org>" + " linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" "On Tue, Feb 07, 2012 at 09:48:24PM +0530, Rabin Vincent wrote:\n" @@ -12,14 +14,14 @@ "> \n" "> On Sat, Jan 28, 2012 at 19:05, Rabin Vincent <rabin@rab.in> wrote:\n" "> > Some versions of ARM GCC which do support asm goto, have problems\n" - "> > handling the the %c specifier. ?Since we need the %c to support jump\n" + "> > handling the the %c specifier. \302\240Since we need the %c to support jump\n" "> > labels on ARM, detect that too in the asm goto detection script to avoid\n" "> > build errors with these versions.\n" "> >\n" "> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637\n" "> >\n" "> > Cc: Jason Baron <jbaron@redhat.com>\n" - "> > Cc: linux-kernel at vger.kernel.org\n" + "> > Cc: linux-kernel@vger.kernel.org\n" "> > Signed-off-by: Rabin Vincent <rabin@rab.in>\n" "> \n" "> Could you please ack this patch if it's OK for you? Then I could try to\n" @@ -28,33 +30,33 @@ "> Thanks.\n" "> \n" "> > ---\n" - "> > ?scripts/gcc-goto.sh | ? 18 +++++++++++++++++-\n" - "> > ?1 files changed, 17 insertions(+), 1 deletions(-)\n" + "> > \302\240scripts/gcc-goto.sh | \302\240 18 +++++++++++++++++-\n" + "> > \302\2401 files changed, 17 insertions(+), 1 deletions(-)\n" "> >\n" "> > diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh\n" "> > index 98cffcb..9b744de 100644\n" "> > --- a/scripts/gcc-goto.sh\n" "> > +++ b/scripts/gcc-goto.sh\n" "> > @@ -2,4 +2,20 @@\n" - "> > ?# Test for gcc 'asm goto' support\n" - "> > ?# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>\n" + "> > \302\240# Test for gcc 'asm goto' support\n" + "> > \302\240# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>\n" "> >\n" "> > -echo \"int main(void) { entry: asm goto (\\\"\\\"::::entry); return 0; }\" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo \"y\"\n" "> > +cat << \"END\" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo \"y\"\n" "> > +int main(void)\n" "> > +{\n" "> > +#ifdef __arm__\n" - "> > + ? ? ? /*\n" - "> > + ? ? ? ?* Not related to asm goto, but used by jump label\n" - "> > + ? ? ? ?* and broken on some ARM GCC versions (see GCC Bug 48637).\n" - "> > + ? ? ? ?*/\n" - "> > + ? ? ? static struct { int dummy; int state; } tp;\n" - "> > + ? ? ? asm (\"@ %c0\" :: \"i\" (&tp.state));\n" + "> > + \302\240 \302\240 \302\240 /*\n" + "> > + \302\240 \302\240 \302\240 \302\240* Not related to asm goto, but used by jump label\n" + "> > + \302\240 \302\240 \302\240 \302\240* and broken on some ARM GCC versions (see GCC Bug 48637).\n" + "> > + \302\240 \302\240 \302\240 \302\240*/\n" + "> > + \302\240 \302\240 \302\240 static struct { int dummy; int state; } tp;\n" + "> > + \302\240 \302\240 \302\240 asm (\"@ %c0\" :: \"i\" (&tp.state));\n" "> > +#endif\n" "> > +\n" "> > +entry:\n" - "> > + ? ? ? asm goto (\"\" :::: entry);\n" - "> > + ? ? ? return 0;\n" + "> > + \302\240 \302\240 \302\240 asm goto (\"\" :::: entry);\n" + "> > + \302\240 \302\240 \302\240 return 0;\n" "> > +}\n" "> > +END\n" "> > --\n" @@ -65,4 +67,4 @@ "\n" Acked-by: Jason Baron <jbaron@redhat.com> -1475c6dd1d9e1e8cdfa3050ef7b8c36ae66b465c6ca86b19c7c039a3412fdc0f +4f75065c6011fc9be97e17555c25a867ad538eded79b345b46cd02513c94f11b
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.