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
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
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 #
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)
> {
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
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
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.
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583
Richard Biener changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
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
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.
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>
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
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?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583
Richard Biener changed:
What|Removed |Added
Priority|P3 |P1
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583
Richard Biener changed:
What|Removed |Added
Keywords||build
Component|rtl-optimizati
18 matches
Mail list logo