[Bug tree-optimization/83026] missing strlen optimization for strcmp of unequal strings

2018-05-31 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83026 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug tree-optimization/83026] missing strlen optimization for strcmp of unequal strings

2018-05-31 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83026 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug tree-optimization/83819] [meta-bug] missing strlen optimizations

2018-05-31 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 83026, which changed state. Bug 83026 Summary: missing strlen optimization for strcmp of unequal strings https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83026 What|Removed |Added

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-05-31 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-07-26 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 --- Comment #46 from qinzhao at gcc dot gnu.org --- https://gcc.gnu.org/viewcvs/gcc?view=revision=263028 was to fix the optimization level issue.

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-08-15 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #17 from qinzhao at gcc dot gnu.org --- the patch has been committed as: https://gcc.gnu.org/viewcvs/gcc?view=revision=263563

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-08-07 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #14 from qinzhao at gcc dot gnu.org --- reported by christophe.l...@linaro.org: After this change,(disable strcmp/strncmp inlining with O2 below and Os), I've noticed that: FAIL: gcc.dg/strcmpopt_6.c scan-rtl-dump-times expand

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-08-07 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #16 from qinzhao at gcc dot gnu.org --- please test the proposed patch on your platform, let me know the result.

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-08-07 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #15 from qinzhao at gcc dot gnu.org --- Created attachment 44516 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44516=edit proposed patch

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-08-21 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #19 from qinzhao at gcc dot gnu.org --- which sparc machine was used to repeat the failure, and what's the configure and make options?

[Bug jit/64949] jit linking fails when building with in-tree libraries (mpc etc...)

2018-08-22 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64949 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-20 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #7 from qinzhao at gcc dot gnu.org --- the root cause for this bug is: for the following call to memcmp: __builtin_memcmp (s->s, "a", 3); the specified length 3 is larger than the length of "a", it's clearl

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-07-20 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 --- Comment #42 from qinzhao at gcc dot gnu.org --- just checked in the patch for fixing the unsigned char issue as: https://gcc.gnu.org/viewcvs/gcc?view=revision=262907

[Bug testsuite/86519] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-13 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #1 from qinzhao at gcc dot gnu.org --- I cannot repeat this issue on a powerPc machine: Native configuration is powerpc64-unknown-linux-gnu === gcc tests === Schedule of variations: unix Running target unix

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-07-16 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-09-05 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-09-05 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug middle-end/86467] New: inlining strcmp with small known length array

2018-07-10 Thread qinzhao at gcc dot gnu.org
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- from Martin Sebor: an enhancement to this optimization implemented for 78809 that might be worth considering is inlining even non-constant calls with array arguments

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-07-13 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 --- Comment #36 from qinzhao at gcc dot gnu.org --- the 3rd part (the last part) of this PR was checked into GCC 9 today as: https://gcc.gnu.org/viewcvs/gcc?view=revision=262636

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-07-13 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 --- Comment #37 from qinzhao at gcc dot gnu.org --- since all the implementation were in trunk. can I close this PR now?

[Bug ipa/86395] New: add support of -fopt-info-inline in early inliner

2018-07-03 Thread qinzhao at gcc dot gnu.org
: ipa Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- currently, -fopt-info-inline does not report any info from early inliner. for example: [qinzhao@localhost inline_report]$ cat

[Bug middle-end/78809] Inline strcmp with small constant strings

2018-08-30 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78809 --- Comment #47 from qinzhao at gcc dot gnu.org --- all the issues triggered by the previous patch have been fixed. I am planing to close this PR as fixed.

[Bug testsuite/86519] [9 Regression] New test case gcc.dg/strcmpopt_6.c fails with its introduction in r262636

2018-08-30 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86519 --- Comment #21 from qinzhao at gcc dot gnu.org --- the latest patch to this test bug has just been checked in at: https://gcc.gnu.org/viewcvs/gcc?view=revision=263983

[Bug gcov-profile/86957] gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use

2018-09-26 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86957 --- Comment #6 from qinzhao at gcc dot gnu.org --- Author: qinzhao Date: Wed Sep 26 22:29:54 2018 New Revision: 264657 URL: https://gcc.gnu.org/viewcvs?rev=264657=gcc=rev Log: 2018-09-26 Indu Bhagat PR gcov-profile/86957

[Bug tree-optimization/89730] -flive-patching=inline-only-static should grant always_inline attribute for extern function

2019-04-03 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89730 --- Comment #2 from qinzhao at gcc dot gnu.org --- Author: qinzhao Date: Wed Apr 3 19:00:25 2019 New Revision: 270134 URL: https://gcc.gnu.org/viewcvs?rev=270134=gcc=rev Log: 2019-04-03 qing zhao PR tree-optimization/89730

[Bug tree-optimization/89730] New: -flive-patching=inline-only-static should grant always_inline attribute for extern function

2019-03-15 Thread qinzhao at gcc dot gnu.org
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- for the following small testing case: extern int sum, n, m; extern inline __attribute__

[Bug preprocessor/90581] New: provide an option to adjust the maximum depth of nested #include

2019-05-22 Thread qinzhao at gcc dot gnu.org
Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- for some large complicate applications, sometimes the depth of nested #include might be very big, exceeding the current hard-coded

[Bug preprocessor/90581] provide an option to adjust the maximum depth of nested #include

2019-05-23 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90581 --- Comment #2 from qinzhao at gcc dot gnu.org --- (In reply to Richard Biener from comment #1) > Confirmed. Just curious - were you able to simply up this limit > successfully? Yes, one of our applications' depth of nested #include is 202

[Bug gcov-profile/47618] Collecting multiple profiles and using all for PGO

2019-04-30 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47618 --- Comment #25 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #24) > > > How about the patch for the above 2? has it been committed? > > It has been there for a while, please take a look at: > &

[Bug preprocessor/90581] provide an option to adjust the maximum depth of nested #include

2019-07-02 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90581 --- Comment #3 from qinzhao at gcc dot gnu.org --- Author: qinzhao Date: Tue Jul 2 20:23:30 2019 New Revision: 272948 URL: https://gcc.gnu.org/viewcvs?rev=272948=gcc=rev Log: PR preprocessor/90581 Add a cpp option -fmax-include-depth to set

[Bug preprocessor/90581] provide an option to adjust the maximum depth of nested #include

2019-07-02 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90581 qinzhao at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |qinzhao at gcc dot

[Bug gcov-profile/47618] Collecting multiple profiles and using all for PGO

2019-04-24 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47618 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug sanitizer/89832] confusing error message when there is a problem with ASAN_OPTIONS "ERROR: expected '='"

2019-04-10 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89832 --- Comment #6 from qinzhao at gcc dot gnu.org --- one question to Martin: has the proposed patch been committed in gcc9 upstream? my understanding is the proposed patch is for LLVM source base, not for GCC. are you planning to port the patch

[Bug gcov-profile/91971] New: Profile directory concatenated with object file path

2019-10-02 Thread qinzhao at gcc dot gnu.org
Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- we noticed that the profile directory will be concatenated with object file path. the following small example

[Bug c/91973] New: gcc failed for Multiple level macro expansion

2019-10-02 Thread qinzhao at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- GCC cannot compile the following small testing case: [qinzhao@localhost]$ cat t1.c extern void boo (void *addr); #define foo(addr) \ boo (addr) #define bar(instr, addr

[Bug c/91973] gcc failed for Multiple level macro expansion

2019-10-02 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91973 --- Comment #2 from qinzhao at gcc dot gnu.org --- (In reply to Joseph S. Myers from comment #1) > This is not a bug in GCC, it's how the preprocessor is defined to work. So, this is an user error? is there any C language rules on this? why

[Bug c/91973] gcc failed for Multiple level macro expansion

2019-10-02 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91973 --- Comment #6 from qinzhao at gcc dot gnu.org --- (In reply to jos...@codesourcery.com from comment #5) > We're talking about the sequence of pp-tokens in the expansion of bar(foo, > addr), which is (foo) (addr), where foo is fo

[Bug c/91973] gcc failed for Multiple level macro expansion

2019-10-02 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91973 --- Comment #4 from qinzhao at gcc dot gnu.org --- (In reply to jos...@codesourcery.com from comment #3) > Macro replacement for function-like macros is defined in C17 6.10.3. > Note in paragraph 10 the words "the function-like

[Bug gcov-profile/92382] variable double-definition in routine replace_filename_variables of libgcc/libgcov-driver-system.c

2019-11-05 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92382 --- Comment #2 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #1) > Why is this a major issue? Just variable shadowing, so something that with > -Wshadow* compiler will warn, but nothing more, the code i

[Bug gcov-profile/92382] variable double-definition in routine replace_filename_variables of libgcc/libgcov-driver-system.c

2019-11-05 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92382 --- Comment #7 from qinzhao at gcc dot gnu.org --- I have just created a bug to record the debugging issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92386 (In reply to Jakub Jelinek from comment #6) > Feel free to open an issue against

[Bug debug/92386] New: gdb issue with variable-shadowing

2019-11-05 Thread qinzhao at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- gdb cannot print the correct value of variables if it's shadowed. please see the following small testing case for an example: 1 #include 2 int 3 main () 4 { 5 volatile int v

[Bug gcov-profile/92382] variable double-definition in routine replace_filename_variables of libgcc/libgcov-driver-system.c

2019-11-05 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92382 --- Comment #5 from qinzhao at gcc dot gnu.org --- Okay, I see. thank you for explanation. I will close this one as not a bug. (In reply to Jakub Jelinek from comment #4)

[Bug gcov-profile/92382] New: variable double-definition in routine replace_filename_variables of libgcc/libgcov-driver-system.c

2019-11-05 Thread qinzhao at gcc dot gnu.org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- In the routine

[Bug gcov-profile/91971] Profile directory concatenated with object file path

2019-10-23 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91971 --- Comment #5 from qinzhao at gcc dot gnu.org --- Author: qinzhao Date: Wed Oct 23 18:12:39 2019 New Revision: 277344 URL: https://gcc.gnu.org/viewcvs?rev=277344=gcc=rev Log: 2019-10-23 qing zhao PR gcov-profile/91971

[Bug gcov-profile/91971] Profile directory concatenated with object file path

2019-10-23 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91971 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug gcov-profile/91971] Profile directory concatenated with object file path

2019-10-22 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91971 --- Comment #3 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #2) > Confirmed. Can you please send the patch to mailing list? I have sent the patch to gcc-patches several weeks ago, and pinged twice already: ht

[Bug gcov-profile/91971] Profile directory concatenated with object file path

2019-10-09 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91971 --- Comment #1 from qinzhao at gcc dot gnu.org --- the following simple patch will fix this issue: $ git diff coverage.c diff --git a/gcc/coverage.c b/gcc/coverage.c index 0d5138f..a80337e 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c

[Bug driver/93019] New: memory leak in gcc -O2 reported by Valgrind

2019-12-19 Thread qinzhao at gcc dot gnu.org
: driver Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- Valgrind reported 12 memory errors when I run the latest upstream gcc with -O2 on the following small testing case: [qinzhao@localhost memory_leak]$ cat t1.c int main(int argc

[Bug sanitizer/89832] confusing error message when there is a problem with ASAN_OPTIONS "ERROR: expected '='"

2019-12-20 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89832 --- Comment #11 from qinzhao at gcc dot gnu.org --- Hi, (In reply to Martin Liška from comment #10) > Fixed on trunk. I am trying to back port the fix for 89832 into our company's gcc8.2.1 release. by looking at the patch, it's huge, and i

[Bug c/94230] provide an option to change the size limitation for -Wmisleading-indent

2020-04-06 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94230 --- Comment #8 from qinzhao at gcc dot gnu.org --- (In reply to David Malcolm from comment #6) > If you have a huge workload, one possible workaround would be to disable > range tracking, perhaps tweaking line_table->default_range_bi

[Bug sanitizer/91203] __asan_set_error_report_callback has no effect on leak messages

2020-03-31 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91203 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug c/94230] provide an option to change the size limitation for -Wmisleading-indent

2020-03-30 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94230 --- Comment #7 from qinzhao at gcc dot gnu.org --- (In reply to David Malcolm from comment #6) > If you have a huge workload, one possible workaround would be to disable > range tracking, perhaps tweaking line_table->default_range_bi

[Bug middle-end/94855] provide an option to initialize automatic variable for security purpose

2020-04-29 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94855 --- Comment #1 from qinzhao at gcc dot gnu.org --- this is a request to provide a new option in GCC to initialize automatic variables for security purpose. Motivations for this request: 1. Kees Cook's slide: https://outflux.net/slides/2019/lca

[Bug middle-end/94855] New: provide an option to initialize automatic variable for security purpose

2020-04-29 Thread qinzhao at gcc dot gnu.org
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: ---

[Bug c/94230] provide an option to change the size limitation for -Wmisleading-indent

2020-05-06 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94230 qinzhao at gcc dot gnu.org changed: What|Removed |Added Version|10.0|11.0 Resolution

[Bug c/87210] [RFE] introduce build time options to zero initialize automatic stack variables

2020-05-15 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87210 --- Comment #6 from qinzhao at gcc dot gnu.org --- So, based on the previous discussion on the LLVM option -ftrivial-auto-var-init=[uninitialized|pattern|zero] we can see: -ftrivial-auto-var-init=pattern might not be a good idea due

[Bug c/94229] New: more clarification on the warning message from -Wmisleading-indent

2020-03-19 Thread qinzhao at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- gcc issues the following warning message for -Wmisleading-indentation: test.c:632: note: -Wmisleading-indentation is disabled from

[Bug c/94230] New: provide an option to change the size limitation for -Wmisleading-indent

2020-03-19 Thread qinzhao at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- gcc issues the following warning message for -Wmisleading-indentation: test.c:632: note: -Wmisleading-indentation is disabled from

[Bug c/94230] provide an option to change the size limitation for -Wmisleading-indent

2020-03-20 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94230 --- Comment #2 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #1) > The size limitation is given from the way columns, lines, blocks and > location ranges are encoded in location_t, which is a 32-bit number.

[Bug c/94230] provide an option to change the size limitation for -Wmisleading-indent

2020-03-20 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94230 --- Comment #4 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #3) > We do not want to use 64-bit number for that, it is used everywhere in the > compiler and would cause massive growth of compile time

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-05-27 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #3 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #2) > Thank you for the report. It's a known limitation Honza noticed me about. > Is the size problematic from size perspective or speed perspecti

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-05-27 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #5 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #4)> > Can you please share some statistics how big are the files and how many runs > do you merge? There were on the order of 10,000 processe

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-05-29 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #9 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #7) > 1) You should not generate profile data for each process to a different > folder, but rather merge it. not sure how to do this? can you provid

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-05-29 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #15 from qinzhao at gcc dot gnu.org --- please refer to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47618

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-05-29 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #8 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #6 > Which means one run takes 100MB is size, right? As you mentioned, having > 1000 .gcda files, it means that one takes 0.1MB? around 14000 pro

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-06-01 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #18 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #16) > > For our application, all processes generating profiling feedback data to a > > single directory seems is not a choice. > >

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-06-01 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #17 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #6) more details: > > Which means one run takes 100MB is size, right? As you mentioned, having > 1000 .gcda files, it means that one ta

[Bug gcov-profile/95348] New: GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-05-26 Thread qinzhao at gcc dot gnu.org
: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- when using GCC and ICC to build a big parallel application

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-06-02 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #24 from qinzhao at gcc dot gnu.org --- with the patch added to gcc11, I tested it with the small testing case, and got the following data: **without the patch: qinzhao@gcc14:~/Bugs/profile/small_gcc/gcc_prof_dir/13248$ ls -l -rw

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-06-15 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #36 from qinzhao at gcc dot gnu.org --- I found a bug with this proposed patch: when doing automatic merging, the following error message is emitted: Merge mismatch for function 1. the bug can be repeated with the small testing case

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-06-15 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #37 from qinzhao at gcc dot gnu.org --- So, the previous prof data size for the real application might not be correct. After this bug is fixed, we might need to collect the new real code size reduction.

[Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT

2020-06-16 Thread qinzhao at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95348 --- Comment #39 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #38) > Created attachment 48738 [details] > Patch candidate v2 I have added this patch to my private gcc 8 with some change, works fine with the

[Bug other/97309] Improve documentation of -fallow-store-data-races

2020-10-08 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97309 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug preprocessor/96391] [10/11 Regression] internal compiler error: in linemap_compare_locations, at libcpp/line-map.c:1359

2020-10-07 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391 --- Comment #6 from qinzhao at gcc dot gnu.org --- when using gcc10.2 to compile our application, we have the same compilation error.

[Bug middle-end/97357] Unable to coalesce ssa_names which are marked as MUST COALESCE.

2020-10-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97357 --- Comment #1 from qinzhao at gcc dot gnu.org --- /home/qinzhao/Install/latest/bin/gcc -v Using built-in specs. COLLECT_GCC=/home/qinzhao/Install/latest/bin/gcc COLLECT_LTO_WRAPPER=/home/qinzhao/Install/latest/libexec/gcc/x86_64-pc-linux-gnu

[Bug middle-end/97357] New: Unable to coalesce ssa_names which are marked as MUST COALESCE.

2020-10-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- the latest gcc10.2.1 failed with SSA corruption on multiple c modules of our important application on O3. disabling -fsplit-loops

[Bug preprocessor/96391] [10/11 Regression] internal compiler error: in linemap_compare_locations, at libcpp/line-map.c:1359

2020-10-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391 --- Comment #7 from qinzhao at gcc dot gnu.org --- as we noticed, when using gcc10.2.1 compile our application, 528 C++ modules failed with this bug. looks like a high priority bug to me.

[Bug preprocessor/96391] [10/11 Regression] internal compiler error: in linemap_compare_locations, at libcpp/line-map.c:1359

2020-10-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391 qinzhao at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P2

[Bug middle-end/97357] [10 Regression] Unable to coalesce ssa_names which are marked as MUST COALESCE.

2020-10-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97357 --- Comment #9 from qinzhao at gcc dot gnu.org --- with the patch, all the C modules in our application that failed with this bug passed without any issue.

[Bug other/97309] Improve documentation of -fallow-store-data-races

2020-10-06 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97309 --- Comment #1 from qinzhao at gcc dot gnu.org --- proposed patch: Subject: [PATCH] PR97309--improve documentation of -fallow-store-data-races --- gcc/doc/invoke.texi | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff

[Bug other/97309] New: Improve documentation of -fallow-store-data-races

2020-10-06 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
: other Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- As of GCC 10, the former --param allow-store-data-races is now -fallow-store-data-races. The default, in both cases, is not to allow them. For releases prior to GCC

[Bug rtl-optimization/97777] ICE: in df_refs_verify, at df-scan.c:3991 with -O -ffinite-math-only -fzero-call-used-regs=all

2020-12-02 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 qinzhao at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED Status

[Bug rtl-optimization/97777] ICE: in df_refs_verify, at df-scan.c:3991 with -O -ffinite-math-only -fzero-call-used-regs=all

2020-11-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug rtl-optimization/97777] ICE: in df_refs_verify, at df-scan.c:3991 with -O -ffinite-math-only -fzero-call-used-regs=all

2020-11-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 --- Comment #3 from qinzhao at gcc dot gnu.org --- This does not look like a bug in the new -fzero-call-used-regs implemenation. it's more likely an existing bug in data flow analysis. I made the following change in gcc/function.c to make

[Bug rtl-optimization/97777] ICE: in df_refs_verify, at df-scan.c:3991 with -O -ffinite-math-only -fzero-call-used-regs=all

2020-11-16 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 --- Comment #4 from qinzhao at gcc dot gnu.org --- this should be a bug in the pass "stack". if I modify the file "reg-stack.c" as following: qinzhao@gcc10:~/Work/write_gcc/gcc$ git diff reg-stack.c diff --git a/gcc/reg-stack

[Bug rtl-optimization/97777] ICE: in df_refs_verify, at df-scan.c:3991 with -O -ffinite-math-only -fzero-call-used-regs=all

2020-11-16 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 --- Comment #5 from qinzhao at gcc dot gnu.org --- the following patch in reg-stack.c fixed the failure: qinzhao@gcc10:~/Work/write_gcc/gcc$ git diff reg-stack.c diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 8f98bd85750..3dab843f803

[Bug testsuite/97680] new test case c-c++-common/zero-scratch-regs-10.c in r11-4578 has excess errors

2020-11-02 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97680 --- Comment #1 from qinzhao at gcc dot gnu.org --- (In reply to seurer from comment #0) > commit d10f3e900b0377b4760a090b0f90371bcef01686 > Author: qing zhao > Date: Fri Oct 30 20:41:38 2020 +0100 > > If looks like the erro

[Bug testsuite/97699] [11 regression] zero-scratch-regs tests fail on arm

2020-11-03 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97699 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug testsuite/97680] [11 Regression] new test case c-c++-common/zero-scratch-regs-10.c in r11-4578 has excess errors

2020-11-03 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97680 --- Comment #3 from qinzhao at gcc dot gnu.org --- (In reply to Richard Biener from comment #2) > Err, please dg-skip the tests for ! supported targets. They also fail on > x86_64 with -m32 btw. x86_64 with -m32 failure should be already

[Bug target/97715] [11 Regression] ICE in insn_default_length, at config/i386/i386.md:15325 since r11-4578-gd10f3e900b0377b4

2020-11-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97715 --- Comment #22 from qinzhao at gcc dot gnu.org --- proposed patch: This change fixes a bug in the i386 backend when adding -fzero-call-used-regs=all on a target that has no x87 registers. When there is no x87 registers available, we should

[Bug target/97715] [11 Regression] ICE in insn_default_length, at config/i386/i386.md:15325 since r11-4578-gd10f3e900b0377b4

2020-11-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97715 --- Comment #1 from qinzhao at gcc dot gnu.org --- for -fzero-call-used-regs=all, when zeroing st/mm registers under x87 exit mode, However, command line option force no 80387 mode, the following insn generated to zero st registers

[Bug target/97715] [11 Regression] ICE in insn_default_length, at config/i386/i386.md:15325 since r11-4578-gd10f3e900b0377b4

2020-11-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97715 --- Comment #6 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #3) > ;; Floating-point register constraints. > (define_register_constraint "f" > "TARGET_80387 || TARGET_FLOAT_RETURNS_IN_8038

[Bug target/97715] [11 Regression] ICE in insn_default_length, at config/i386/i386.md:15325 since r11-4578-gd10f3e900b0377b4

2020-11-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97715 --- Comment #5 from qinzhao at gcc dot gnu.org --- (In reply to H.J. Lu from comment #2) > (In reply to qinzhao from comment #1) > > for -fzero-call-used-regs=all, when zeroing st/mm registers under x87 exit > > mode, However, comm

[Bug target/97715] [11 Regression] ICE in insn_default_length, at config/i386/i386.md:15325 since r11-4578-gd10f3e900b0377b4

2020-11-05 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97715 qinzhao at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug middle-end/98702] New: linker failure with a very simple testing case for gcc10

2021-01-15 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: qinzhao at gcc dot gnu.org Target Milestone: --- Created attachment 49980 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49980=edit tar file that can repeat the fail

[Bug preprocessor/96391] [10/11 Regression] internal compiler error: in linemap_compare_locations, at libcpp/line-map.c:1359

2021-02-10 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391 --- Comment #17 from qinzhao at gcc dot gnu.org --- (In reply to David Malcolm from comment #15) > where: > > (gdb) call inform (loc_a, "loc_a") > In file included from > /usr/i686-w64-mingw32/sys-root/ming

[Bug preprocessor/96391] [10 Regression] ICE in linemap_compare_locations on "CONST VOID" in large C++ files

2021-02-10 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391 --- Comment #23 from qinzhao at gcc dot gnu.org --- with the latest gcc11, our application can be compiled without any issue now. thanks a lot for fixing this bug. will this patch be added to gcc10?

[Bug rtl-optimization/99627] ICE:in sel_is_loop_preheader_p, at sel-sched-ir.c:6347 with -fprofile-use -fselective-scheduling -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -O3 -fno-strict-

2021-03-17 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99627 --- Comment #2 from qinzhao at gcc dot gnu.org --- NOTE, this failure is on aarch64.

[Bug rtl-optimization/99627] ICE:in sel_is_loop_preheader_p, at sel-sched-ir.c:6347 with -fprofile-use -fselective-scheduling -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -O3 -fno-strict-

2021-03-17 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99627 --- Comment #1 from qinzhao at gcc dot gnu.org --- Created attachment 50411 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50411=edit testing case and script testing case and script

[Bug rtl-optimization/99627] New: ICE:in sel_is_loop_preheader_p, at sel-sched-ir.c:6347 with -fprofile-use -fselective-scheduling -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -O3 -fno-st

2021-03-17 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
: qinzhao at gcc dot gnu.org Target Milestone: --- Another selective scheduler's bug with profiling feedback from CPU2017. reduced testing case attached. to reproduce: download the *.tar.xz file; untar it; cd bug_4 sh t qinzhao@gcc113:~/Bugs/bug_4$ sh t during RTL pass: sched1 cfgloop.h

  1   2   3   4   >