http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54641

             Bug #: 54641
           Summary: Wrong warning flags for building avr-c.o, fails to
                    build
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: amyl...@gcc.gnu.org
            Blocks: 44756
            Target: avr-elf, avr-rtems


g++ -c  -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_ST
RUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes
 -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition
-Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc
-I../../../gcc/gcc/. -I../../../gcc/gcc/../include
-I../../../gcc/gcc/../libcpp/include  -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber    -I. -I.
-I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include
-I../../../gcc/gcc/../libcpp/include  -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber  
../../../gcc/gcc/config/avr/avr-c.c
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC
but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for
C/ObjC but not for C++ [enabled by default]
cc1plus: error: command line option ‘-Wold-style-definition’ is valid for
C/ObjC but not for C++ [-Werror]
cc1plus: error: command line option ‘-Wc++-compat’ is valid for C/ObjC but not
for C++ [-Werror]
cc1plus: all warnings being treated as errors
make[2]: *** [avr-c.o] Error 1

Reply via email to