https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66085

            Bug ID: 66085
           Summary: [6 Regression] Revision r222934 breaks bootstrap on
                    darwin.
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: aldyh at gcc dot gnu.org, howarth.at.gcc at gmail dot com,
                    iains at gcc dot gnu.org
  Target Milestone: ---
              Host: *-*-darwin*
            Target: *-*-darwin*
             Build: *-*-darwin*

Revision r222934 breaks bootstrap on darwin (and all target for which
ASM_OUTPUT_DEF is not defined)

/opt/gcc/build_w/./prev-gcc/xg++ -B/opt/gcc/build_w/./prev-gcc/
-B/opt/gcc/gcc6w/x86_64-apple-darwin14.3.0/bin/ -nostdinc++
-B/opt/gcc/build_w/prev-x86_64-apple-darwin14.3.0/libstdc++-v3/src/.libs
-B/opt/gcc/build_w/prev-x86_64-apple-darwin14.3.0/libstdc++-v3/libsupc++/.libs 
-I/opt/gcc/build_w/prev-x86_64-apple-darwin14.3.0/libstdc++-v3/include/x86_64-apple-darwin14.3.0
 -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.3.0/libstdc++-v3/include 
-I/opt/gcc/work/libstdc++-v3/libsupc++
-L/opt/gcc/build_w/prev-x86_64-apple-darwin14.3.0/libstdc++-v3/src/.libs
-L/opt/gcc/build_w/prev-x86_64-apple-darwin14.3.0/libstdc++-v3/libsupc++/.libs
-c  -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2   -gtoggle -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common  -DHAVE_CONFIG_H -I. -Icp -I../../work/gcc -I../../work/gcc/cp
-I../../work/gcc/../include -I./../intl -I../../work/gcc/../libcpp/include
-I/opt/mp-new/include  -I../../work/gcc/../libdecnumber
-I../../work/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../work/gcc/../libbacktrace -I/opt/mp-new/include  -o cp/decl2.o -MT
cp/decl2.o -MMD -MP -MF cp/.deps/decl2.TPo ../../work/gcc/cp/decl2.c
../../work/gcc/cp/decl2.c:4330:27: error: unused parameter 'decl'
[-Werror=unused-parameter]
 note_mangling_alias (tree decl, tree id2)
                           ^
../../work/gcc/cp/decl2.c:4330:38: error: unused parameter 'id2'
[-Werror=unused-parameter]
 note_mangling_alias (tree decl, tree id2)
                                      ^
cc1plus: all warnings being treated as errors

I am testing 

--- ../_clean/gcc/cp/decl2.c    2015-05-09 10:07:54.000000000 +0200
+++ gcc/cp/decl2.c      2015-05-09 11:29:23.000000000 +0200
@@ -4327,7 +4327,7 @@ generate_mangling_alias (tree decl, tree
    implementation.  */

 void
-note_mangling_alias (tree decl, tree id2)
+note_mangling_alias (tree decl __attribute__((unused)), tree id2
__attribute__((unused)))
 {
 #ifdef ASM_OUTPUT_DEF
   if (at_eof)

Reply via email to