[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/26044] New: Some targets can't be compiled with GCC 10
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/26044] New: Some targets can't be compiled with GCC 10 |
Date: |
Tue, 26 May 2020 12:30:45 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26044
Bug ID: 26044
Summary: Some targets can't be compiled with GCC 10
Product: binutils
Version: 2.35 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4575:6:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4575 | sprintf (append_str, "bne %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4573:6:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4573 | sprintf (append_str, "beq %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4542:3:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4542 | sprintf (append_str, "bne %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4540:3:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4540 | sprintf (append_str, "beq %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c: In function
‘s3_do_macro_bcmpz’:
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4722:6:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4722 | sprintf (append_str, "bne %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4720:6:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4720 | sprintf (append_str, "beq %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4690:3:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4690 | sprintf (append_str, "bne %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/gnu/import/git/sources/binutils-gdb/gas/config/tc-score.c:4688:3:
error: ‘sprintf’ argument 3 may overlap destination object ‘keep_data’
[-Werror=restrict]
4688 | sprintf (append_str, "beq %s", keep_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[7]: *** [Makefile:1229: config/tc-score.o] Error 1
tc-score.c has
char *append_str = keep_data + keep_data_size;
...
if ((inst_main.instruction & 0x3e00007e) == 0x0000004c)
sprintf (append_str, "beq %s", keep_data);
else
sprintf (append_str, "bne %s", keep_data);
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/26044] New: Some targets can't be compiled with GCC 10,
hjl.tools at gmail dot com <=
- [Bug gas/26044] Some targets can't be compiled with GCC 10, cvs-commit at gcc dot gnu.org, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, hjl.tools at gmail dot com, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, hjl.tools at gmail dot com, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, hjl.tools at gmail dot com, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, hjl.tools at gmail dot com, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, cvs-commit at gcc dot gnu.org, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, cvs-commit at gcc dot gnu.org, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, hjl.tools at gmail dot com, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, cvs-commit at gcc dot gnu.org, 2020/05/26
- [Bug gas/26044] Some targets can't be compiled with GCC 10, hjl.tools at gmail dot com, 2020/05/26