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

           Summary: xtensa-elf --enable-werror-always build fails
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: amyl...@gcc.gnu.org
            Blocks: 44756
            Target: xtensa-elf


../../../gcc/gcc/config/xtensa/xtensa.c: In function
‘xtensa_expand_nonlocal_goto’:
../../../gcc/gcc/config/xtensa/xtensa.c:1310:8: error: enum conversion when
passing argument 2 of ‘emit_library_call’ is invalid in C++
[-Werror=c++-compat]
../../../gcc/gcc/rtl.h:2480:13: note: expected ‘enum libcall_type’ but argument
is of type ‘int’
../../../gcc/gcc/config/xtensa/xtensa.c: In function
‘xtensa_setup_frame_addresses’:
../../../gcc/gcc/config/xtensa/xtensa.c:1586:6: error: enum conversion when
passing argument 2 of ‘emit_library_call’ is invalid in C++
[-Werror=c++-compat]
../../../gcc/gcc/rtl.h:2480:13: note: expected ‘enum libcall_type’ but argument
is of type ‘int’
../../../gcc/gcc/config/xtensa/xtensa.c: In function ‘xtensa_function_arg_1’:
../../../gcc/gcc/config/xtensa/xtensa.c:2053:13: error: assignment discards
‘const’ qualifier from pointer target type [-Werror]
../../../gcc/gcc/config/xtensa/xtensa.c: In function ‘xtensa_expand_prologue’:
../../../gcc/gcc/config/xtensa/xtensa.c:2640:3: error: enum conversion when
passing argument 2 of ‘gen_rtx_fmt_ee_stat’ is invalid in C++
[-Werror=c++-compat]
./genrtl.h:24:1: note: expected ‘enum machine_mode’ but argument is of type
‘int’
../../../gcc/gcc/config/xtensa/xtensa.c: In function ‘xtensa_trampoline_init’:
../../../gcc/gcc/config/xtensa/xtensa.c:3593:8: error: enum conversion when
passing argument 2 of ‘emit_library_call’ is invalid in C++
[-Werror=c++-compat]
../../../gcc/gcc/rtl.h:2480:13: note: expected ‘enum libcall_type’ but argument
is of type ‘int’

Reply via email to