public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760
@ 2008-08-03 8:42 alex at ozo dot com
2008-08-05 15:57 ` [Bug c/37014] " bunk at stusta dot de
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: alex at ozo dot com @ 2008-08-03 8:42 UTC (permalink / raw)
To: gcc-bugs
trying to compile ath9k for mips or mipsel under openwrt toolchain with
gcc-4.2.4 produces the following error:
make[3]: Entering directory `/extra3/openwrt/ar71xx/trunk/package/ath9k'
make -C "/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/linux-2.6.26"
ARCH="mips" CROSS_COMPILE="mips-linux-uclibc-"
SUBDIRS="/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080731/drivers/net/wireless/ath9k"
EXTRA_CFLAGS=" -DCONFIG_ATH9K=1 "
LINUXINCLUDE="-I/extra3/openwrt/ar71xx/trunk/staging_dir/mips/usr/include/mac80211
-I/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/linux-2.6.26/include
-include linux/autoconf.h" CONFIG_ATH9K=m modules
make[4]: Entering directory
`/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/linux-2.6.26'
CC [M]
/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080731/drivers/net/wireless/ath9k/hw.o
/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080731/drivers/net/wireless/ath9k/hw.c:
In function 'ath9k_hw_spur_mitigate':
/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080731/drivers/net/wireless/ath9k/hw.c:4906:
internal compiler error: in expand_expr_real_1, at expr.c:8760
Please submit a full bug report,
with preprocessed source if appropriate.
a snapshot of the ath9k used is here:
http://wifi.ozo.com/airo/openwrt/source/ath9k
a relative ticket on the ath9k is here:
https://lists.ath9k.org/pipermail/ath9k-devel/2008-August/000082.html
gcc-3.4.6 compiles fine for mips & mipsel targets. gcc-4.2.4 also compiles fine
for x86 target.
--
Summary: internal compiler error: in expand_expr_real_1, at
expr.c:8760
Product: gcc
Version: 4.2.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alex at ozo dot com
GCC build triplet: openwrt-mips toolchain
GCC host triplet: core2duo x86-64 smp
GCC target triplet: mips & mipsel
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/37014] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
@ 2008-08-05 15:57 ` bunk at stusta dot de
2008-08-05 16:00 ` bunk at stusta dot de
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bunk at stusta dot de @ 2008-08-05 15:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bunk at stusta dot de 2008-08-05 15:56 -------
Stephen Rothwell reported that he also saw it on powerpc.
I verified the bug on powerpc with the following gcc versions:
- 4.2.4
- 4.3, latest svn
- 4.4, latest svn
4.1.2 is fine.
--
bunk at stusta dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bunk at stusta dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/37014] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
2008-08-05 15:57 ` [Bug c/37014] " bunk at stusta dot de
@ 2008-08-05 16:00 ` bunk at stusta dot de
2008-08-05 17:13 ` [Bug middle-end/37014] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bunk at stusta dot de @ 2008-08-05 16:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bunk at stusta dot de 2008-08-05 15:59 -------
Created an attachment (id=16025)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16025&action=view)
hw.i.gz
$ powerpc64-linux-gcc --version
powerpc64-linux-gcc (GCC) 4.4.0 20080805 (experimental)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ powerpc64-linux-gcc -O1 hw.i
/TMP/git/linux-next/drivers/net/wireless/ath9k/hw.c: In function
'ath9k_hw_9280_spur_mitigate':
/TMP/git/linux-next/drivers/net/wireless/ath9k/hw.c:4660: internal compiler
error: in expand_expr_real_1, at expr.c:9176
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
2008-08-05 15:57 ` [Bug c/37014] " bunk at stusta dot de
2008-08-05 16:00 ` bunk at stusta dot de
@ 2008-08-05 17:13 ` pinskia at gcc dot gnu dot org
2008-08-05 18:04 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-05 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-08-05 17:11 -------
Reducing for PPC-linux-gnu.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (2 preceding siblings ...)
2008-08-05 17:13 ` [Bug middle-end/37014] " pinskia at gcc dot gnu dot org
@ 2008-08-05 18:04 ` pinskia at gcc dot gnu dot org
2008-08-05 18:08 ` [Bug middle-end/37014] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-05 18:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-08-05 18:03 -------
Reduced testcase:
void ath9k_hw_9280_spur_mitigate( int bin, int cur_vit_mask) {
int i;
signed char mask_m[123];
signed char mask_p[123];
signed char mask_amt;
for (i = 0; i < 123;i++)
{
int __x1 = ({int __x = cur_vit_mask - bin;(__x < 0) ? -__x : __x;});
mask_amt = __x1< 75;
mask_m[cur_vit_mask ] = mask_amt;
mask_p[cur_vit_mask] = mask_amt;
cur_vit_mask --;
}
f(mask_p);
f(mask_m);
}
Expand is getting:
(int) ivtmp.20 >= -74 && (int) ivtmp.20 <= 74
Which comes from folding of:
ABS_EXPR <(int) ivtmp.20> <= 74
Which is folded at:
4509 exp = fold_convert (lang_hooks.types.type_for_mode
4510 (GET_MODE (SUBREG_REG (target)),
4511 SUBREG_PROMOTED_UNSIGNED_P (target)),
4512 exp);
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2008-08-05 18:03:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (3 preceding siblings ...)
2008-08-05 18:04 ` pinskia at gcc dot gnu dot org
@ 2008-08-05 18:08 ` pinskia at gcc dot gnu dot org
2008-08-08 14:00 ` mikpe at it dot uu dot se
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-05 18:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2008-08-05 18:07 -------
This worked for at least 3.4.0 as this tree was able to be expanded :).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|openwrt-mips toolchain |
GCC host triplet|core2duo x86-64 smp |
GCC target triplet|mips & mipsel |
Known to work| |3.4.0
Summary|internal compiler error: in |[4.2/4.3/4.4 Regression]
|expand_expr_real_1, at |internal compiler error: in
|expr.c:8760 |expand_expr_real_1, at
| |expr.c:8760
Target Milestone|--- |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (4 preceding siblings ...)
2008-08-05 18:08 ` [Bug middle-end/37014] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-08-08 14:00 ` mikpe at it dot uu dot se
2008-08-08 22:52 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mikpe at it dot uu dot se @ 2008-08-08 14:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mikpe at it dot uu dot se 2008-08-08 13:58 -------
(In reply to comment #4)
I can confirm that the reduced test case fails for me with gcc 4.0.4, 4.1.2,
4.2.4, and 4.3.1 on both powerpc and powerpc64. gcc-3.4.6 and older work.
It doesn't fail for me with gcc-4.x on either sparc64 or arm.
--
mikpe at it dot uu dot se changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (5 preceding siblings ...)
2008-08-08 14:00 ` mikpe at it dot uu dot se
@ 2008-08-08 22:52 ` mmitchel at gcc dot gnu dot org
2008-08-11 18:39 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2008-08-08 22:52 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (6 preceding siblings ...)
2008-08-08 22:52 ` mmitchel at gcc dot gnu dot org
@ 2008-08-11 18:39 ` jakub at gcc dot gnu dot org
2008-08-12 10:02 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-08-11 18:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2008-08-11 18:38 -------
I think the options are:
1) handle TRUTH_{AND,OR}IF_EXPR in expand_expr again (revert part of Paolo's
2004-08-09 expr.c "dead" code removals) - while these aren't present
in GIMPLE nor can be created by TER, they can be created by folding during
expansion. Maybe even COMPOUND_EXPR could be handled there and all the
ugly hacks builtins.c does to work around this could be removed.
2) have a special flag for fold-const.c, set during expansion, that would
preclude certain kinds of folding (e.g. creation of the trees that aren't
handled by the expander)
3) have expand's special versions of the various fold* routines, look for the
unhandled trees in what it creates and either fail to fold them, or
transform
to something else.
IMHO 1) would be probably easiest to implement, 3) too ugly to live, 2)
possible.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (7 preceding siblings ...)
2008-08-11 18:39 ` jakub at gcc dot gnu dot org
@ 2008-08-12 10:02 ` jakub at gcc dot gnu dot org
2008-08-12 18:08 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-08-12 10:02 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-08-05 18:03:10 |2008-08-12 10:01:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (8 preceding siblings ...)
2008-08-12 10:02 ` jakub at gcc dot gnu dot org
@ 2008-08-12 18:08 ` jakub at gcc dot gnu dot org
2008-08-12 18:39 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-08-12 18:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2008-08-12 18:07 -------
Subject: Bug 37014
Author: jakub
Date: Tue Aug 12 18:05:43 2008
New Revision: 139029
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139029
Log:
PR middle-end/37014
* expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
and TRUTH_ORIF_EXPR.
* dojump.c (do_jump): Likewise.
* gcc.c-torture/compile/20080812-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/20080812-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dojump.c
trunk/gcc/expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (9 preceding siblings ...)
2008-08-12 18:08 ` jakub at gcc dot gnu dot org
@ 2008-08-12 18:39 ` jakub at gcc dot gnu dot org
2008-08-13 8:22 ` jakub at gcc dot gnu dot org
2009-04-29 15:16 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-08-12 18:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2008-08-12 18:37 -------
Subject: Bug 37014
Author: jakub
Date: Tue Aug 12 18:36:28 2008
New Revision: 139032
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139032
Log:
PR middle-end/37014
* expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
and TRUTH_ORIF_EXPR.
* dojump.c (do_jump): Likewise.
* gcc.c-torture/compile/20080812-1.c: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/20080812-1.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/dojump.c
branches/gcc-4_3-branch/gcc/expr.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (10 preceding siblings ...)
2008-08-12 18:39 ` jakub at gcc dot gnu dot org
@ 2008-08-13 8:22 ` jakub at gcc dot gnu dot org
2009-04-29 15:16 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-08-13 8:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jakub at gcc dot gnu dot org 2008-08-13 08:20 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/37014] [4.2/4.3/4.4 Regression] internal compiler error: in expand_expr_real_1, at expr.c:8760
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
` (11 preceding siblings ...)
2008-08-13 8:22 ` jakub at gcc dot gnu dot org
@ 2009-04-29 15:16 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-29 15:16 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.5 |4.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-04-29 15:16 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-03 8:42 [Bug c/37014] New: internal compiler error: in expand_expr_real_1, at expr.c:8760 alex at ozo dot com
2008-08-05 15:57 ` [Bug c/37014] " bunk at stusta dot de
2008-08-05 16:00 ` bunk at stusta dot de
2008-08-05 17:13 ` [Bug middle-end/37014] " pinskia at gcc dot gnu dot org
2008-08-05 18:04 ` pinskia at gcc dot gnu dot org
2008-08-05 18:08 ` [Bug middle-end/37014] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
2008-08-08 14:00 ` mikpe at it dot uu dot se
2008-08-08 22:52 ` mmitchel at gcc dot gnu dot org
2008-08-11 18:39 ` jakub at gcc dot gnu dot org
2008-08-12 10:02 ` jakub at gcc dot gnu dot org
2008-08-12 18:08 ` jakub at gcc dot gnu dot org
2008-08-12 18:39 ` jakub at gcc dot gnu dot org
2008-08-13 8:22 ` jakub at gcc dot gnu dot org
2009-04-29 15:16 ` pinskia 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).