public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
@ 2009-07-14 19:49 janis at gcc dot gnu dot org
2009-07-14 21:46 ` [Bug bootstrap/40753] [4.5 Regression] " rguenth at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-07-14 19:49 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1635 bytes --]
Compiling libffi/src/powerpc/ffi.c as part of a bootstrap for powerpc*-*-linux*
fails starting with this patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=149624
r149624 | rguenth | 2009-07-14 09:59:18 +0000 (Tue, 14 Jul 2009)
This minimized testcase demonstrates the problem:
--------------------------------------------------------------
typedef long unsigned int size_t;
typedef struct {
unsigned nargs;
} ffi_cif;
typedef struct {
char tramp[24];
ffi_cif *cif;
} ffi_closure;
extern void *memcpy (void *, const void *, size_t);
extern void ffi_closure_LINUX64 (void);
int
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
{
void **tramp = (void **) &closure->tramp[0];
memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
closure->cif = cif;
return 0;
}
--------------------------------------------------------------
elm3b149% /home/janis/build/build-gcc-trunk-anonsvn/gcc/cc1 -quiet -O2
bug0714.c
bug0714.c: In function ffi_prep_closure_loc:
bug0714.c:21:1: internal compiler error: in refs_may_alias_p_1, at
tree-ssa-alias.c:746
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc*-*-linux*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/40753] [4.5 Regression] ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
2009-07-14 19:49 [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c janis at gcc dot gnu dot org
@ 2009-07-14 21:46 ` rguenth at gcc dot gnu dot org
2009-07-14 21:58 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-14 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-07-14 21:46 -------
Obviously mine.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-14 21:46:29
date| |
Summary|ICE in refs_may_alias_p_1 |[4.5 Regression] ICE in
|for libffi/src/powerpc/ffi.c|refs_may_alias_p_1 for
| |libffi/src/powerpc/ffi.c
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/40753] [4.5 Regression] ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
2009-07-14 19:49 [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c janis at gcc dot gnu dot org
2009-07-14 21:46 ` [Bug bootstrap/40753] [4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2009-07-14 21:58 ` rguenth at gcc dot gnu dot org
2009-07-15 9:26 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-14 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-14 21:58 -------
Huh, we end up with a FUNCTION_DECL here, from
(gdb) call debug_rtx (mem)
(mem/c/i:SI (const:SI (plus:SI (symbol_ref:SI ("ffi_closure_LINUX64") [flags
0x41] <function_decl 0xb7d4ec80 ffi_closure_LINUX64>)
(const_int 12 [0xc]))) [0 ffi_closure_LINUX64+12 S4 A8])
that doesn't make much sense but is easy to fix.
Index: alias.c
===================================================================
--- alias.c (revision 149643)
+++ alias.c (working copy)
@@ -279,6 +279,11 @@ ao_ref_from_mem (ao_ref *ref, const_rtx
&& TREE_CODE (TREE_OPERAND (base, 0)) != SSA_NAME)
return false;
+ /* The tree oracle doesn't like to have these. */
+ if (TREE_CODE (base) == FUNCTION_DECL
+ || TREE_CODE (base) == LABEL_DECL)
+ return false;
+
/* If this is a reference based on a partitioned decl replace the
base with an INDIRECT_REF of the pointer representative we
created during stack slot partitioning. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/40753] [4.5 Regression] ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
2009-07-14 19:49 [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c janis at gcc dot gnu dot org
2009-07-14 21:46 ` [Bug bootstrap/40753] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-07-14 21:58 ` rguenth at gcc dot gnu dot org
@ 2009-07-15 9:26 ` rguenth at gcc dot gnu dot org
2009-07-15 9:43 ` rguenth at gcc dot gnu dot org
2009-07-23 17:52 ` hjl at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-15 9:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-07-15 09:25 -------
Subject: Bug 40753
Author: rguenth
Date: Wed Jul 15 09:25:34 2009
New Revision: 149664
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149664
Log:
2009-07-15 Richard Guenther <rguenther@suse.de>
PR middle-end/40753
* alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL
bases.
* gcc.c-torture/compile/pr40753.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr40753.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/alias.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/40753] [4.5 Regression] ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
2009-07-14 19:49 [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c janis at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-07-15 9:26 ` rguenth at gcc dot gnu dot org
@ 2009-07-15 9:43 ` rguenth at gcc dot gnu dot org
2009-07-23 17:52 ` hjl at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-15 9:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-07-15 09:43 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/40753] [4.5 Regression] ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c
2009-07-14 19:49 [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c janis at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-07-15 9:43 ` rguenth at gcc dot gnu dot org
@ 2009-07-23 17:52 ` hjl at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-07-23 17:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl at gcc dot gnu dot org 2009-07-23 17:51 -------
Subject: Bug 40753
Author: hjl
Date: Thu Jul 23 17:50:56 2009
New Revision: 150020
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020
Log:
2009-07-23 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-07-22 Richard Guenther <rguenther@suse.de>
PR c++/40799
* g++.dg/lookup/using21.C: New testcase.
2009-07-19 Jan Hubicka <jh@suse.cz>
PR tree-optimization/40676
* gcc.c-torture/compile/pr40676.c: New testcase.
2009-07-15 Richard Guenther <rguenther@suse.de>
PR middle-end/40753
* gcc.c-torture/compile/pr40753.c: New testcase.
2009-07-14 Dodji Seketeli <dodji@redhat.com>
PR debug/40705
* g++.dg/debug/dwarf2/typedef1.C: New test.
PR c++/40357
* g++.dg/other/typedef3.C: New test.
2009-07-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/40496
* g++.dg/opt/pr40496.C: New testcase.
2009-07-09 Jakub Jelinek <jakub@redhat.com>
PR middle-end/40692
* gcc.c-torture/compile/pr40692.c: New test.
2009-07-08 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/40330
PR libfortran/40662
* gfortran.dg/fmt_cache_1.f: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
- copied unchanged from r150018,
trunk/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/using21.C
- copied unchanged from r150018,
trunk/gcc/testsuite/g++.dg/lookup/using21.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/opt/pr40496.C
- copied unchanged from r150018, trunk/gcc/testsuite/g++.dg/opt/pr40496.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/typedef3.C
- copied unchanged from r150018,
trunk/gcc/testsuite/g++.dg/other/typedef3.C
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40676.c
- copied unchanged from r150018,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40676.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40692.c
- copied unchanged from r150018,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40692.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40753.c
- copied unchanged from r150018,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40753.c
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/fmt_cache_1.f
- copied unchanged from r150018,
trunk/gcc/testsuite/gfortran.dg/fmt_cache_1.f
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40753
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-07-23 17:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 19:49 [Bug bootstrap/40753] New: ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c janis at gcc dot gnu dot org
2009-07-14 21:46 ` [Bug bootstrap/40753] [4.5 Regression] " rguenth at gcc dot gnu dot org
2009-07-14 21:58 ` rguenth at gcc dot gnu dot org
2009-07-15 9:26 ` rguenth at gcc dot gnu dot org
2009-07-15 9:43 ` rguenth at gcc dot gnu dot org
2009-07-23 17:52 ` hjl at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).