* [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2
@ 2014-01-14 16:26 Otavio Salvador
2014-01-14 16:29 ` Otavio Salvador
2014-01-14 16:58 ` Khem Raj
0 siblings, 2 replies; 4+ messages in thread
From: Otavio Salvador @ 2014-01-14 16:26 UTC (permalink / raw)
To: openembedded-core; +Cc: Otavio Salvador
Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57532
Log:
r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
PR c++/57532
* parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
a ref-qualifier in C++98 mode.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
meta/recipes-devtools/gcc/gcc-4.8.inc | 1 +
.../gcc/gcc-4.8/0048-PR57532.patch | 36 ++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc
index 8d50bf7..b34c7ae 100644
--- a/meta/recipes-devtools/gcc/gcc-4.8.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.8.inc
@@ -77,6 +77,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \
file://0046-libatomic-deptracking.patch \
file://0047-repomembug.patch \
+ file://0048-PR57532.patch \
"
SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304"
SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813"
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
new file mode 100644
index 0000000..4a05d33
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
@@ -0,0 +1,36 @@
+Upstream-Status: Backport
+Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
+
+r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
+
+ PR c++/57532
+ * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
+ a ref-qualifier in C++98 mode.
+
+Index: gcc/testsuite/g++.dg/parse/ref-qual2.C
+===================================================================
+--- a/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 0)
++++ b/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 200836)
+@@ -0,0 +1,6 @@
++// PR c++/57532
++
++int main()
++{
++ return (int() & int());
++}
+Index: gcc/cp/parser.c
+===================================================================
+--- a/gcc/cp/parser.c (revision 200835)
++++ b/gcc/cp/parser.c (revision 200836)
+@@ -16986,6 +16986,11 @@
+ {
+ cp_ref_qualifier ref_qual = REF_QUAL_NONE;
+ cp_token *token = cp_lexer_peek_token (parser->lexer);
++
++ /* Don't try to parse bitwise '&' as a ref-qualifier (c++/57532). */
++ if (cxx_dialect < cxx11 && cp_parser_parsing_tentatively (parser))
++ return ref_qual;
++
+ switch (token->type)
+ {
+ case CPP_AND:
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2
2014-01-14 16:26 [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2 Otavio Salvador
@ 2014-01-14 16:29 ` Otavio Salvador
2014-01-14 16:58 ` Khem Raj
1 sibling, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2014-01-14 16:29 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Otavio Salvador
[-- Attachment #1: Type: text/plain, Size: 715 bytes --]
Hello,
I am adding Khem and Robert in Cc so they can review the patch...
On Tue, Jan 14, 2014 at 2:26 PM, Otavio Salvador <otavio@ossystems.com.br>wrote:
> Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57532
>
> Log:
> r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
>
> PR c++/57532
> * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
> a ref-qualifier in C++98 mode.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 1466 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2
2014-01-14 16:26 [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2 Otavio Salvador
2014-01-14 16:29 ` Otavio Salvador
@ 2014-01-14 16:58 ` Khem Raj
2014-01-15 3:23 ` Robert Yang
1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2014-01-14 16:58 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
looks good to me.
On Tue, Jan 14, 2014 at 8:26 AM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57532
>
> Log:
> r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
>
> PR c++/57532
> * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
> a ref-qualifier in C++98 mode.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> meta/recipes-devtools/gcc/gcc-4.8.inc | 1 +
> .../gcc/gcc-4.8/0048-PR57532.patch | 36 ++++++++++++++++++++
> 2 files changed, 37 insertions(+)
> create mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
>
> diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc
> index 8d50bf7..b34c7ae 100644
> --- a/meta/recipes-devtools/gcc/gcc-4.8.inc
> +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc
> @@ -77,6 +77,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
> file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \
> file://0046-libatomic-deptracking.patch \
> file://0047-repomembug.patch \
> + file://0048-PR57532.patch \
> "
> SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304"
> SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813"
> diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
> new file mode 100644
> index 0000000..4a05d33
> --- /dev/null
> +++ b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
> @@ -0,0 +1,36 @@
> +Upstream-Status: Backport
> +Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> +
> +r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
> +
> + PR c++/57532
> + * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
> + a ref-qualifier in C++98 mode.
> +
> +Index: gcc/testsuite/g++.dg/parse/ref-qual2.C
> +===================================================================
> +--- a/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 0)
> ++++ b/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 200836)
> +@@ -0,0 +1,6 @@
> ++// PR c++/57532
> ++
> ++int main()
> ++{
> ++ return (int() & int());
> ++}
> +Index: gcc/cp/parser.c
> +===================================================================
> +--- a/gcc/cp/parser.c (revision 200835)
> ++++ b/gcc/cp/parser.c (revision 200836)
> +@@ -16986,6 +16986,11 @@
> + {
> + cp_ref_qualifier ref_qual = REF_QUAL_NONE;
> + cp_token *token = cp_lexer_peek_token (parser->lexer);
> ++
> ++ /* Don't try to parse bitwise '&' as a ref-qualifier (c++/57532). */
> ++ if (cxx_dialect < cxx11 && cp_parser_parsing_tentatively (parser))
> ++ return ref_qual;
> ++
> + switch (token->type)
> + {
> + case CPP_AND:
> --
> 1.7.10.4
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2
2014-01-14 16:58 ` Khem Raj
@ 2014-01-15 3:23 ` Robert Yang
0 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2014-01-15 3:23 UTC (permalink / raw)
To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer
Hi Otavio,
Thanks, I will add it dora-next.
// Robert
On 01/15/2014 12:58 AM, Khem Raj wrote:
> looks good to me.
>
> On Tue, Jan 14, 2014 at 8:26 AM, Otavio Salvador
> <otavio@ossystems.com.br> wrote:
>> Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57532
>>
>> Log:
>> r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
>>
>> PR c++/57532
>> * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
>> a ref-qualifier in C++98 mode.
>>
>> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>> ---
>> meta/recipes-devtools/gcc/gcc-4.8.inc | 1 +
>> .../gcc/gcc-4.8/0048-PR57532.patch | 36 ++++++++++++++++++++
>> 2 files changed, 37 insertions(+)
>> create mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
>>
>> diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc
>> index 8d50bf7..b34c7ae 100644
>> --- a/meta/recipes-devtools/gcc/gcc-4.8.inc
>> +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc
>> @@ -77,6 +77,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
>> file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \
>> file://0046-libatomic-deptracking.patch \
>> file://0047-repomembug.patch \
>> + file://0048-PR57532.patch \
>> "
>> SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304"
>> SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813"
>> diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
>> new file mode 100644
>> index 0000000..4a05d33
>> --- /dev/null
>> +++ b/meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
>> @@ -0,0 +1,36 @@
>> +Upstream-Status: Backport
>> +Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>> +
>> +r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
>> +
>> + PR c++/57532
>> + * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
>> + a ref-qualifier in C++98 mode.
>> +
>> +Index: gcc/testsuite/g++.dg/parse/ref-qual2.C
>> +===================================================================
>> +--- a/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 0)
>> ++++ b/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 200836)
>> +@@ -0,0 +1,6 @@
>> ++// PR c++/57532
>> ++
>> ++int main()
>> ++{
>> ++ return (int() & int());
>> ++}
>> +Index: gcc/cp/parser.c
>> +===================================================================
>> +--- a/gcc/cp/parser.c (revision 200835)
>> ++++ b/gcc/cp/parser.c (revision 200836)
>> +@@ -16986,6 +16986,11 @@
>> + {
>> + cp_ref_qualifier ref_qual = REF_QUAL_NONE;
>> + cp_token *token = cp_lexer_peek_token (parser->lexer);
>> ++
>> ++ /* Don't try to parse bitwise '&' as a ref-qualifier (c++/57532). */
>> ++ if (cxx_dialect < cxx11 && cp_parser_parsing_tentatively (parser))
>> ++ return ref_qual;
>> ++
>> + switch (token->type)
>> + {
>> + case CPP_AND:
>> --
>> 1.7.10.4
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-15 3:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 16:26 [for-dora][PATCH] gcc-4.8: Backport PR c++/57532 fix from 4.8.2 Otavio Salvador
2014-01-14 16:29 ` Otavio Salvador
2014-01-14 16:58 ` Khem Raj
2014-01-15 3:23 ` Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox