public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
@ 2011-07-04 14:32 ` gjl at gcc dot gnu.org
  2011-07-04 14:33 ` gjl at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-04 14:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
            Version|unknown                     |4.7.0
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2011.07.04 14:31:29
          Component|target                      |c
                 CC|                            |gjl at gcc dot gnu.org
     Ever Confirmed|0                           |1
      Known to fail|                            |4.6.1

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-04 14:31:29 UTC ---
This bug is still present in 4.7.0 trunk (AVR 175811).

As far as I can see, it's not a target bug. But unsure about the correct
component, I cose "translation" as of following stack trace:

Breakpoint 1, fancy_abort (file=0x88ef420
"../../../gcc.gnu.org/trunk/gcc/tree.c", line=6510, function=0x88f0dfb
"tree_low_cst") at ../../../gcc.gnu.org/trunk/gcc/diagnostic.c:893
(gdb) bt
#0  fancy_abort (file=0x88ef420 "../../../gcc.gnu.org/trunk/gcc/tree.c",
line=6510, function=0x88f0dfb "tree_low_cst") at
../../../gcc.gnu.org/trunk/gcc/diagnostic.c:893
#1  0x086b6681 in tree_low_cst (t=0xb7dcf3d4, pos=1) at
../../../gcc.gnu.org/trunk/gcc/tree.c:6510
#2  0x0810020c in process_init_element (value={value = 0xb7dc3ea0,
original_code = STRING_CST, original_type = 0x0}, implicit=0 '\0',
braced_init_obstack=0xbfffe27c) at
../../../gcc.gnu.org/trunk/gcc/c-typeck.c:8303
#3  0x0811fc17 in c_parser_initval (parser=0xb7dd5ab8, after=0x0,
braced_init_obstack=0xbfffe27c) at
../../../gcc.gnu.org/trunk/gcc/c-parser.c:3894
#4  0x0811f547 in c_parser_braced_init (parser=0xb7dd5ab8, type=0xb7d4e618,
nested_p=0 '\0') at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:3868
#5  0x08113e5b in c_parser_declaration_or_fndef (parser=0xb7dd5ab8, fndef_ok=1
'\001', static_assert_ok=<value optimized out>, empty_ok=1 '\001', nested=0
'\0', start_attr_ok=<value optimized out>, objc_foreach_object_declaration=0x0)
at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:3608
#6  0x0812308a in c_parser_external_declaration (parser=0xb7dd5ab8) at
../../../gcc.gnu.org/trunk/gcc/c-parser.c:1335
#7  0x081238cb in c_parse_file () at
../../../gcc.gnu.org/trunk/gcc/c-parser.c:1223
#8  0x0816a775 in c_common_parse_file () at
../../../gcc.gnu.org/trunk/gcc/c-family/c-opts.c:1094
#9  0x084c548e in compile_file () at
../../../gcc.gnu.org/trunk/gcc/toplev.c:548
#10 0x084c754d in do_compile () at ../../../gcc.gnu.org/trunk/gcc/toplev.c:1895
#11 0x084c76c5 in toplev_main (argc=19, argv=0xbfffe544) at
../../../gcc.gnu.org/trunk/gcc/toplev.c:1967
#12 0x08183df2 in main (argc=717, argv=0x0) at
../../../gcc.gnu.org/trunk/gcc/main.c:36
(gdb)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
  2011-07-04 14:32 ` [Bug c/42146] ICE in tree_low_cst gjl at gcc dot gnu.org
@ 2011-07-04 14:33 ` gjl at gcc dot gnu.org
  2011-07-04 15:06 ` [Bug translation/42146] " gjl at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-04 14:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translation/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
  2011-07-04 14:32 ` [Bug c/42146] ICE in tree_low_cst gjl at gcc dot gnu.org
  2011-07-04 14:33 ` gjl at gcc dot gnu.org
@ 2011-07-04 15:06 ` gjl at gcc dot gnu.org
  2011-07-04 15:23 ` joseph at codesourcery dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-04 15:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |translation
            Version|4.7.0                       |unknown
   Target Milestone|4.6.2                       |---


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug translation/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-07-04 15:06 ` [Bug translation/42146] " gjl at gcc dot gnu.org
@ 2011-07-04 15:23 ` joseph at codesourcery dot com
  2011-07-04 15:28 ` [Bug c/42146] " gjl at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: joseph at codesourcery dot com @ 2011-07-04 15:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-07-04 15:23:07 UTC ---
On Mon, 4 Jul 2011, gjl at gcc dot gnu.org wrote:

> As far as I can see, it's not a target bug. But unsure about the correct
> component, I cose "translation" as of following stack trace:

I can't see any possible reason in this stack trace for someone to think 
"translation" - that is, bugs in internationalization of the compiler's 
diagnostic output - is appropriate.  The strack trace suggests a front-end 
bug - but a target-specific front-end bug that it will be up to people 
caring about relevant targets to investigate and fix if they want it 
fixed.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-07-04 15:23 ` joseph at codesourcery dot com
@ 2011-07-04 15:28 ` gjl at gcc dot gnu.org
  2011-07-04 15:36 ` rguenth at gcc dot gnu.org
  2012-03-03 14:19 ` gjl at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-04 15:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|translation                 |c

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-04 15:27:57 UTC ---
err sorry, does "c" fit better?

gcc.dg/large-size-array-4.c also triggers the ICE.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-07-04 15:28 ` [Bug c/42146] " gjl at gcc dot gnu.org
@ 2011-07-04 15:36 ` rguenth at gcc dot gnu.org
  2012-03-03 14:19 ` gjl at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-04 15:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-04 15:35:45 UTC ---
tree_low_cst asserts something about the ability to represent the constant
in a HOST_WIDE_INT which has a target-specific (minimal) width.  In your
case HOST_WIDE_INT is 32bit where indeed 0x80000000 is not positive.
Now the question is what's the difference between the i686 x avr vs.
the native i686 behavior?

That's what you need to investigate.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/42146] ICE in tree_low_cst
       [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-07-04 15:36 ` rguenth at gcc dot gnu.org
@ 2012-03-03 14:19 ` gjl at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-03-03 14:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42146

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5
             Status|NEW                         |RESOLVED
      Known to work|                            |4.6.2, 4.7.0
         Resolution|                            |WORKSFORME
   Target Milestone|---                         |4.6.2

--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-03 14:18:02 UTC ---
Appears to be fixed somewhere between 4.6.1 and 4.6.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-03 14:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42146-4@http.gcc.gnu.org/bugzilla/>
2011-07-04 14:32 ` [Bug c/42146] ICE in tree_low_cst gjl at gcc dot gnu.org
2011-07-04 14:33 ` gjl at gcc dot gnu.org
2011-07-04 15:06 ` [Bug translation/42146] " gjl at gcc dot gnu.org
2011-07-04 15:23 ` joseph at codesourcery dot com
2011-07-04 15:28 ` [Bug c/42146] " gjl at gcc dot gnu.org
2011-07-04 15:36 ` rguenth at gcc dot gnu.org
2012-03-03 14:19 ` 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).