[PATCH] gcc/dwarf2asm.c: Add static_output_delta() with var_list for dw2_asm_output_delta()

2014-06-14 Thread Chen Gang
*, const char*, const char*, ...)’: ../../gcc/gcc/dwarf2asm.c:167:50: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Chen Gang --- gcc/ChangeLog | 6 ++ gcc/dwarf2asm.c | 23 +++ 2 files changed, 21 insertions(+), 8

Re: [PATCH] gcc/dwarf2asm.c: Add static_output_delta() with var_list for dw2_asm_output_delta()

2014-06-14 Thread Chen Gang
On 06/14/2014 05:45 PM, Chen Gang wrote: > dw2_asm_output_vms_delta() calls dw2_asm_output_delta() in an abnormal > way, so need add a new function just like vprintf() for printf(), and > then the related call will be in normal way. > > The related warning: > > ../../gc

Re: [PATCH] gcc/dwarf2asm.c: Add static_output_delta() with var_list for dw2_asm_output_delta()

2014-06-15 Thread Chen Gang
On 06/16/2014 09:36 AM, Bin.Cheng wrote: > On Sat, Jun 14, 2014 at 5:50 PM, Chen Gang wrote: [...] > > Hi, > > Please send patches to gcc-patches mailing list. > OK, thanks, and excuse me as a newbie to send a patch to the incorrect mailing list. Thanks. -- Chen Gang

[Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-12 Thread Chen Gang
-gnu Configured with: ../gcc/configure --disable-multilibs --disable-nls Thread model: posix gcc version 5.0.0 20141003 (experimental) (GCC) If we are sure it is a bug, I shall try to analyze it within this month. Thanks -- Chen Gang Open, share, and attitude like air, water, and life which God blessed

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-13 Thread Chen Gang
On 10/13/14 18:58, Peter Maydell wrote: > On 12 October 2014 16:32, Chen Gang wrote: >> Hello All: >> >> I found an issue about g++, it is OK for "-Wall -O0", but will report >> -Wunused-variable for "-Wall -O1|2|3|s". The original version (e.

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-13 Thread Chen Gang
On 10/13/14 18:53, Jason Merrill wrote: > On 10/12/2014 10:32 AM, Chen Gang wrote: >>[root@localhost qemu_cc]# cat test.cc >>const char n() { return 1; } >>const char c = n(); >>[root@localhost qemu_cc]# /usr/local/bin/g++ -Wall -O0 -c -o test.o >&

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-13 Thread Chen Gang
On 10/13/14 21:31, Jakub Jelinek wrote: > On Mon, Oct 13, 2014 at 09:10:31PM +0800, Chen Gang wrote: >> Oh, yes. Originally I got this warning by compiling Qemu. And sorry for >> my sample (test.cc) may be not quite precise. >> >> For me, I guess: >> >> - I

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-13 Thread Chen Gang
On 10/13/14 21:59, Chen Gang wrote: > > On 10/13/14 21:31, Jakub Jelinek wrote: >> On Mon, Oct 13, 2014 at 09:10:31PM +0800, Chen Gang wrote: >>> Oh, yes. Originally I got this warning by compiling Qemu. And sorry for >>> my sample (test.cc) may be not quite pr

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-13 Thread Chen Gang
On 10/13/14 22:00, Jakub Jelinek wrote: > On Mon, Oct 13, 2014 at 10:01:31PM +0800, Chen Gang wrote: >>> Is it correct? > > This mailing list is for development of GCC, not the right place to learn > C++. Please ask either on gcc-help mailing list, or on some C++ user >

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-15 Thread Chen Gang
On 10/13/14 21:18, Chen Gang wrote: > On 10/13/14 18:53, Jason Merrill wrote: >> On 10/12/2014 10:32 AM, Chen Gang wrote: >>>[root@localhost qemu_cc]# cat test.cc >>>const char n() { return 1; } >>>const char c = n(); >>>[root@localhost

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-21 Thread Chen Gang
On 10/15/14 18:07, Chen Gang wrote: > On 10/13/14 21:18, Chen Gang wrote: >> On 10/13/14 18:53, Jason Merrill wrote: >>> On 10/12/2014 10:32 AM, Chen Gang wrote: >>>>[root@localhost qemu_cc]# cat test.cc >>>>const char n() { return 1; }

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-22 Thread Chen Gang
On 10/22/2014 09:44 PM, Jonathan Wakely wrote: > On 22 October 2014 02:46, Chen Gang wrote: >> On 10/15/14 18:07, Chen Gang wrote: >>> On 10/13/14 21:18, Chen Gang wrote: >>>> On 10/13/14 18:53, Jason Merrill wrote: >>>>> On 10/12/2014 10:32 AM, Chen

[Suggestion] about h8/300 architecture in gcc and binutils

2013-09-09 Thread Chen Gang
it still valuable to send these bugs to Bugzilla (although it is found under Linux)? Thanks. -- Chen Gang

Re: [Suggestion] about h8/300 architecture in gcc and binutils

2013-09-09 Thread Chen Gang
On 09/10/2013 10:19 AM, Jeff Law wrote: > On 09/09/2013 07:13 PM, Chen Gang wrote: >> Hello Maintainers: >> >> After google search and check the Linux kernel, H8/300 is dead, and for >> gcc-4.9.0 and binutils-2.23.2 still has h8300, do we still need it for >&g

Re: [Suggestion] about h8/300 architecture in gcc and binutils

2013-09-10 Thread Chen Gang
lated mails, better always include binut...@sourceware.org (although may it is only for gcc issues) ? Is it correct ? (if it is correct, not need reply) Thanks. > Chen Gang schrieb: >> On 09/10/2013 10:19 AM, Jeff Law wrote: >>> On 09/09/2013 07:13 PM, Chen Gang wrote: >&

Re: [Suggestion] about h8/300 architecture in gcc and binutils

2013-09-11 Thread Chen Gang
r compiler development). Welcome any members' suggestions or completions :-). Thanks. On 09/11/2013 09:02 AM, Chen Gang wrote: > On 09/11/2013 03:55 AM, Michael Schewe wrote: >> Hello Maintainers, >> >> if you like to drop h8/300 support in linux kernel, thats OK for me. >

Re: [Suggestion] about h8/300 architecture in gcc and binutils

2013-09-12 Thread Chen Gang
On 09/13/2013 01:09 AM, Jeff Law wrote: > On 09/11/2013 10:38 PM, Chen Gang wrote: >> Hello all: >> >> I have send the related issues to "http://gcc.gnu.org/bugzilla";, please >> check if you like, thanks. >> >> currently, I only send 3 bugs: Bu

Re: [Suggestion] about h8/300 architecture in gcc and binutils

2013-09-12 Thread Chen Gang
On 09/13/2013 01:02 PM, Chung-Ju Wu wrote: > 2013/9/13 Chen Gang : >> > On 09/13/2013 01:09 AM, Jeff Law wrote: >>> >> On 09/11/2013 10:38 PM, Chen Gang wrote: >>>> >>> Hello all: >>>> >>> > [...] >>>> >>