http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46450
Summary: xstormy16-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: 44433,44756 Target: xstormy16-elf Beyond PR46433, there are target-specific reasons why xstormy16-elf doesn't build configured with --enable-werror-always: ../../../gcc/gcc/config/stormy16/stormy16.c: In function ‘xstormy16_expand_prologue’: ../../../gcc/gcc/config/stormy16/stormy16.c:1112:2: 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/stormy16/stormy16.c:1137:2: 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/stormy16/stormy16.c: In function ‘xstormy16_function_arg’: ../../../gcc/gcc/config/stormy16/stormy16.c:1282:49: error: comparison between pointer and integer [-Werror] ../../../gcc/gcc/config/stormy16/stormy16.c:1284:3: error: passing argument 2 of ‘gen_rtx_REG’ makes integer from pointer without a cast [-Werror] ../../../gcc/gcc/rtl.h:2165:12: note: expected ‘unsigned int’ but argument is of type ‘int *’ ../../../gcc/gcc/config/stormy16/stormy16.c: In function ‘xstormy16_expand_builtin’: ../../../gcc/gcc/config/stormy16/stormy16.c:2335:30: error: enum conversion when passing argument 4 of ‘expand_expr’ is invalid in C++ [-Werror=c++-compat] ../../../gcc/gcc/expr.h:419:1: note: expected ‘enum expand_modifier’ but argument is of type ‘int’ ../../../gcc/gcc/config/stormy16/stormy16.c:2349:2: error: enum conversion when passing argument 1 of ‘gen_reg_rtx’ is invalid in C++ [-Werror=c++-compat] ../../../gcc/gcc/rtl.h:1630:12: note: expected ‘enum machine_mode’ but argument is of type ‘int’ ../../../gcc/gcc/config/stormy16/stormy16.c:2351:2: error: enum conversion when passing argument 1 of ‘gen_reg_rtx’ is invalid in C++ [-Werror=c++-compat] ../../../gcc/gcc/rtl.h:1630:12: note: expected ‘enum machine_mode’ but argument is of type ‘int’ ../../../gcc/gcc/config/stormy16/stormy16.c:2360:8: error: enum conversion when passing argument 1 of ‘gen_reg_rtx’ is invalid in C++ [-Werror=c++-compat] ../../../gcc/gcc/rtl.h:1630:12: note: expected ‘enum machine_mode’ but argument is of type ‘int’ ../../../gcc/gcc/config/stormy16/stormy16.c:2363:6: error: enum conversion when passing argument 1 of ‘copy_to_mode_reg’ is invalid in C++ [-Werror=c++-compat] ../../../gcc/gcc/expr.h:599:12: note: expected ‘enum machine_mode’ but argument is of type ‘int’ ../../../gcc/gcc/config/stormy16/stormy16.c: In function ‘combine_bnp’: ../../../gcc/gcc/config/stormy16/stormy16.c:2394:18: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2435:12: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2435:41: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2435:46: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2435:68: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2437:35: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2440:43: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2441:48: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2445:43: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2448:8: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2452:30: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2455:18: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2456:21: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2463:12: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2463:41: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2463:46: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2463:68: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2465:24: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2466:43: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2467:48: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2470:30: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2473:18: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2474:21: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2478:11: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2489:33: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2506:8: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2509:64: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2565:66: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2568:52: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2594:7: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat] ../../../gcc/gcc/config/stormy16/stormy16.c:2595:18: error: identifier "and" is a special operator name in C++ [-Werror=c++-compat]