[Bug debug/95431] inconsistent behaviors at -O2

2020-05-29 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95431 Yibiao Yang changed: What|Removed |Added CC||yangyibiao at hust dot edu.cn --- Comment

[Bug debug/95432] inconsistent behaviors at -O2

2020-05-29 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95432 Yibiao Yang changed: What|Removed |Added CC||yangyibiao at hust dot edu.cn --- Comment

[Bug debug/95432] New: inconsistent behaviors at -O2

2020-05-29 Thread yangyibiao at hust dot edu.cn
Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- Consider test case: ... $ cat small.c __attribute__ ((noinline, noclone)) int foo (char *c) { asm volatile ("" : : "r" (c) : "memory"); return 1; }

[Bug debug/95431] New: inconsistent behaviors at -O2

2020-05-29 Thread yangyibiao at hust dot edu.cn
Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- Consider test case: ... $ cat small.c #include volatile int one = 1; int main() { char a1[] = {(char)one, 2, 3, 4}; char a2[] = {1, (char)(2*one), 3, 4}; int res = memcmp (a1, a2

[Bug debug/95414] New: Wrong debug info for argc at -O2

2020-05-29 Thread yangyibiao at hust dot edu.cn
Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- Created attachment 48633 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48633=edit a.out $ gcc --version gcc (GCC) 10.0.1 20200419 (experimental) Copyright (C) 2020 Free Softw

[Bug debug/95387] New: inconsistent behaviors at -Os

2020-05-28 Thread yangyibiao at hust dot edu.cn
Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- Created attachment 48628 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48628=edit a.out $ gdb --version GNU gdb (GDB) 10.0.50.20200517-git Copyright (C) 2020 Free Softw

[Bug debug/95377] New: inconsistent behaviors at -O1

2020-05-27 Thread yangyibiao at hust dot edu.cn
Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- Created attachment 48622 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48622=edit a.out $ gcc --version gcc (GCC) 10.0.1 20200419 (experimental) Copyright (C) 2020 Free Softw

[Bug debug/95360] inconsistent behaviors at -O0

2020-05-27 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95360 --- Comment #6 from Yibiao Yang --- (In reply to Jonathan Wakely from comment #2) > (In reply to Yibiao Yang from comment #0) > > As showed, Line 6 is hit first and then hit Line 7 with stepi. > > However, when using step, gdb is first hit Line

[Bug debug/95360] inconsistent behaviors at -O0

2020-05-27 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95360 --- Comment #5 from Yibiao Yang --- (In reply to Tom de Vries from comment #3) > (In reply to Yibiao Yang from comment #0) > > Breakpoint 1, main () at small.c:5 > > 5 for (; d<1; d++) > > (gdb) stepi > > 0x00401154 5 for (;

[Bug debug/95360] inconsistent behaviors at -O0

2020-05-27 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95360 --- Comment #1 from Yibiao Yang --- Created attachment 48616 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48616=edit the binary

[Bug debug/95360] New: inconsistent behaviors at -O0

2020-05-27 Thread yangyibiao at hust dot edu.cn
Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- $ gcc --version gcc (GCC) 10.0.1 20200419 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions

[Bug gcov-profile/93726] [GCOV] unexecuted functions lead to incorrect code coverage when it calls a function with a variable argument

2020-02-19 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93726 --- Comment #2 from Yibiao Yang --- (In reply to Martin Liška from comment #1) > How is that different from PR93725? Of this one, it wrongly marked a (executed) statement as not executed. For Bug PR93725, the frequencies is incorrect: A

[Bug gcov-profile/93766] New: [GCOV] incorrect coverage when compiled with option '-fsanitize=undefined' for struct assignment statement

2020-02-16 Thread yangyibiao at hust dot edu.cn
: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright

[Bug gcov-profile/93757] New: [GCOV] incorrect coverage for inline function with "a?b:c" expression

2020-02-15 Thread yangyibiao at hust dot edu.cn
ty: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright (C) 2019 Free Software

[Bug gcov-profile/93754] New: [GCOV] incorrect coverage for user-defined "free" function

2020-02-14 Thread yangyibiao at hust dot edu.cn
ty: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright (C) 2019 Free Software Found

[Bug gcov-profile/93735] New: [GCOV] incorrect coverage for calling variable arguments function with incremental expression in its parameter list

2020-02-13 Thread yangyibiao at hust dot edu.cn
: 9.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov

[Bug gcov-profile/93726] New: [GCOV] unexecuted functions lead to incorrect code coverage when it calls a function with a variable argument

2020-02-13 Thread yangyibiao at hust dot edu.cn
Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov

[Bug gcov-profile/93725] New: [GCOV] inline attribute leads to incorrect code coverage for calling variable argument function

2020-02-12 Thread yangyibiao at hust dot edu.cn
Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright (C) 2019

[Bug gcov-profile/93706] New: [GCOV] function with inline attribute leads to incorrect code coverage

2020-02-12 Thread yangyibiao at hust dot edu.cn
Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright (C) 2019 Free Software Foundation

[Bug gcov-profile/93626] [GCOV] incorrect coverage when compiled with option '-fsanitize=undefined' for typedef struct

2020-02-11 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93626 --- Comment #2 from Yibiao Yang --- (In reply to Martin Liška from comment #1) > I would not recommend combining --coverage and a sanitizer. Thanks for the suggestion. Yes, this is an abnormal combination.

[Bug gcov-profile/93693] New: [GCOV] incorrect coverage when compiled with option '-fsanitize=undefined' for function defined inside other function

2020-02-11 Thread yangyibiao at hust dot edu.cn
: 9.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gdb

[Bug gcov-profile/93680] New: [GCOV] "do-while" structure in case statement leads to incorrect code coverage

2020-02-11 Thread yangyibiao at hust dot edu.cn
Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright (C) 2019 Fre

[Bug gcov-profile/93626] New: [GCOV] incorrect coverage when compiled with option '-fsanitize=undefined' for typedef struct

2020-02-07 Thread yangyibiao at hust dot edu.cn
Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn CC: marxin at gcc dot gnu.org Target Milestone: --- $ gcov -v gcov (GCC) 9.2.0 Copyright (C) 2019 Free

[Bug debug/93000] [gdb] gdb failed to break on an executed address

2019-12-18 Thread yangyibiao at hust dot edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93000 --- Comment #1 from Yibiao Yang --- the compilation command is as follows: $ gcc -w -g -O0 small.c -o small.obj

[Bug debug/93000] New: [gdb] gdb failed to break on an executed address

2019-12-18 Thread yangyibiao at hust dot edu.cn
: debug Assignee: unassigned at gcc dot gnu.org Reporter: yangyibiao at hust dot edu.cn Target Milestone: --- $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1