public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
@ 2011-12-13 12:30 gjl at gcc dot gnu.org
2011-12-13 12:31 ` [Bug c/51527] " gjl at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-12-13 12:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
Bug #: 51527
Summary: ICE: Segmentation fault: 'convert_to_integer' enters
infinite recursion
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gjl@gcc.gnu.org
Host: i686-pc-linux-gnu
Target: avr
Build: i686-pc-linux-gnu
== Code ==
void test_1 (void)
{
int i;
// notice it works with __uint24
__int24 a, b;
for (i = 0; i < 500; i++)
{
if (i & 1)
a += 0x7654321L;
else
b += 0x5fe453L;
}
}
This code enters infinite recurson.
Configured with: ../../gcc.gnu.org/trunk/configure --target=avr
--prefix=/home/georg/install/gcc-4.7 --disable-nls --enable-languages=c,c++
--with-dwarf2 --enable-checking=yes,rtl
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
@ 2011-12-13 12:31 ` gjl at gcc dot gnu.org
2011-12-13 12:50 ` gjl at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-12-13 12:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-12-13 12:30:12 UTC ---
Created attachment 26069
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26069
Log output, FYI
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
2011-12-13 12:31 ` [Bug c/51527] " gjl at gcc dot gnu.org
@ 2011-12-13 12:50 ` gjl at gcc dot gnu.org
2012-03-05 17:32 ` gjl at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-12-13 12:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-13
CC| |eric.weddington at atmel
| |dot com
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
2011-12-13 12:31 ` [Bug c/51527] " gjl at gcc dot gnu.org
2011-12-13 12:50 ` gjl at gcc dot gnu.org
@ 2012-03-05 17:32 ` gjl at gcc dot gnu.org
2012-03-22 9:31 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-05 17:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-05 17:31:49 UTC ---
Here is a smaller test case:
__int24 add3 (__int24 a)
{
return a + 0x10000;
}
It works if
-- the constant is cast with (__int24) 0x10000
-- the constant is smaller than 0x10000
-- the operation is not +, - or *
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
` (2 preceding siblings ...)
2012-03-05 17:32 ` gjl at gcc dot gnu.org
@ 2012-03-22 9:31 ` rguenth at gcc dot gnu.org
2012-04-27 10:52 ` gjl at gcc dot gnu.org
2012-04-27 11:04 ` gjl at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-22 9:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.0 |4.7.1
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-22 08:27:25 UTC ---
GCC 4.7.0 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
` (3 preceding siblings ...)
2012-03-22 9:31 ` rguenth at gcc dot gnu.org
@ 2012-04-27 10:52 ` gjl at gcc dot gnu.org
2012-04-27 11:04 ` gjl at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-04-27 10:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-04-27 10:52:03 UTC ---
Author: gjl
Date: Fri Apr 27 10:51:58 2012
New Revision: 186899
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186899
Log:
PR c/51527
* convert.c (convert_to_integer): Avoid infinte recursion for
target-defined built-in types.
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/convert.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/51527] ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
` (4 preceding siblings ...)
2012-04-27 10:52 ` gjl at gcc dot gnu.org
@ 2012-04-27 11:04 ` gjl at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-04-27 11:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51527
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to work| |4.8.0
Resolution| |FIXED
--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-04-27 11:03:48 UTC ---
Fixed in 4.7.1
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-27 11:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 12:30 [Bug c/51527] New: ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion gjl at gcc dot gnu.org
2011-12-13 12:31 ` [Bug c/51527] " gjl at gcc dot gnu.org
2011-12-13 12:50 ` gjl at gcc dot gnu.org
2012-03-05 17:32 ` gjl at gcc dot gnu.org
2012-03-22 9:31 ` rguenth at gcc dot gnu.org
2012-04-27 10:52 ` gjl at gcc dot gnu.org
2012-04-27 11:04 ` gjl at gcc dot gnu.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).