]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Revert r289150:
authorpfg <pfg@FreeBSD.org>
Mon, 12 Oct 2015 02:05:25 +0000 (02:05 +0000)
committerpfg <pfg@FreeBSD.org>
Mon, 12 Oct 2015 02:05:25 +0000 (02:05 +0000)
Correct handling of enum attributes with g++

It is causing issues on some platforms.

Reported by: sbruno (through adrian)

contrib/gcc/cp/parser.c

index 895d0eeed1117b21cbaaa2509cdf24eee2e62fde..25cc2250f9f07f0d9025b004651bc5b0b1ee2dff 100644 (file)
@@ -10906,7 +10906,6 @@ cp_parser_enum_specifier (cp_parser* parser)
   if (cp_parser_allow_gnu_extensions_p (parser))
     {
       tree trailing_attr = cp_parser_attributes_opt (parser);
-      trailing_attr = chainon (trailing_attr, attributes);
       cplus_decl_attributes (&type,
                             trailing_attr,
                             (int) ATTR_FLAG_TYPE_IN_PLACE);