[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 Martin Liška changed: What|Removed |Added CC||jamborm at gcc dot gnu.org --- Comment #1

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #16 from Martin Liška --- > > I do: > > __attribute__((noinline, malloc)) > foo.isra (const char * p) > { >[local count: 1073741824]: > bar (p_1(D)); [tail call] > return; > > } > > main (int argc, char * * argv) > { > c

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #15 from rguenther at suse dot de --- On Mon, 17 Feb 2020, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 > > --- Comment #14 from Martin Liška --- > (In reply to Richard Biener from comment #

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #14 from Martin Liška --- (In reply to Richard Biener from comment #12) > void *bar(const char*); > static void *__attribute__((malloc,noinline)) foo(const char *p) > { > return bar (p); > } > > int main(int argc, char **argv) > {

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #13 from Richard Biener --- The testcase reproduces the issue on x86_64 with diff --git a/gcc/calls.c b/gcc/calls.c index b5ccfaced37..d27c9fb67a7 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -3684,7 +3684,7 @@ expand_call (tree exp

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #12 from Richard Biener --- void *bar(const char*); static void *__attribute__((malloc,noinline)) foo(const char *p) { return bar (p); } int main(int argc, char **argv) { foo (argv[0]); return 0; } doesn't ICE on x86_64

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #11 from Richard Biener --- At this point can you instead try to create a small testcase showing the IPA SRA issue? The malloc attribute isn't really invalid, it's just pointless.

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #10 from Martin Liška --- (In reply to Richard Biener from comment #9) > Testing the patch. Points to a memleak in rs6000-driver.c: > > cache = detect_caches_linux (); > /* PPC Linux does not provide any cache informatio

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #8 from rguenther at suse dot de --- On Mon, 17 Feb 2020, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 > > --- Comment #5 from Martin Liška --- > (In reply to Segher Boessenkool from comment

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #7 from Martin Liška --- It seems to me that ECF_MALLOC attribute is invalid on a function that has void return type.

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #6 from Martin Liška --- (gdb) p debug_tree(exp) > side-effects nothrow fn unsigned DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 structural-equality>

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #5 from Martin Liška --- (In reply to Segher Boessenkool from comment #4) > The line where things crash is > rtx temp = gen_reg_rtx (GET_MODE (valreg)); > but presumably valreg is just 0 here? Yes: (gdb) p valreg $1 = (rtx

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-14 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #4 from Segher Boessenkool --- The line where things crash is rtx temp = gen_reg_rtx (GET_MODE (valreg)); but presumably valreg is just 0 here?

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 --- Comment #3 from Richard Biener --- Confirmed (c940105cc17111be98d8d42ba48a413b0e63aebe), with ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,o

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-14 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583 Richard Biener changed: What|Removed |Added Keywords||build Component|rtl-optimizati