public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c
@ 2003-07-13 19:15 dhazeghi at yahoo dot com
  2003-07-13 19:17 ` [Bug ada/11514] " dhazeghi at yahoo dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-13 19:15 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] ICE on bootstrap with ada in sem_util.c
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhazeghi at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i?86-*-linux

tree-ssa has been failing to build ada for quite a while on i686-pc-linux (this 
particular error since at least 5/11: http://gcc.gnu.
org/ml/gcc/2003-05/msg01064.html.

../gcc/configure
...
stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.5-branch/i686-pc-linux-gnu/bin/ -c -g 
-O2       -gnatpg -gnata -I- -I. -Iada -I../../gcc/gcc/ada ../..
/gcc/gcc/ada/sem_type.adb -o ada/sem_type.o
stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.5-branch/i686-pc-linux-gnu/bin/ -c -g 
-O2       -gnatpg -gnata -I- -I. -Iada -I../../gcc/gcc/ada ../..
/gcc/gcc/ada/sem_util.adb -o ada/sem_util.o
+===========================GNAT BUG DETECTED==============================+
| 3.5-tree-ssa 20030712 (merged 20030525) (i686-pc-linux-gnu) GCC error:   |
| in walk_tree, at tree-inline.c:1634                                      |
| Error detected at ../../gcc/gcc/ada/sem_util.adb:126:21                  |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+
...

It would be nice if these were either fixed, or ada was disabled per default on 
tree-ssa branch (it gets enabled automatically).


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

* [Bug ada/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.c
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
@ 2003-07-13 19:17 ` dhazeghi at yahoo dot com
  2003-07-13 19:32 ` pinskia at physics dot uc dot edu
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-13 19:17 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dhazeghi at yahoo dot com  2003-07-13 19:17 -------
I'd attach the requisite testcase, but that seems like half of the entire ada 
compiler... I can though, if it's deemed necessary.

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.

../../gcc/gcc/ada/sem_util.adb
../../gcc/gcc/ada/sem_util.ads
../../gcc/gcc/ada/einfo.ads
../../gcc/gcc/ada/snames.ads
../../gcc/gcc/ada/types.ads
../../gcc/gcc/ada/uintp.ads
../../gcc/gcc/ada/alloc.ads
../../gcc/gcc/ada/table.ads
../../gcc/gcc/ada/urealp.ads
../../gcc/gcc/ada/atree.ads
../../gcc/gcc/ada/sinfo.ads
../../gcc/gcc/ada/casing.ads
../../gcc/gcc/ada/debug.ads
../../gcc/gcc/ada/errout.ads
../../gcc/gcc/ada/elists.ads
../../gcc/gcc/ada/exp_util.ads
../../gcc/gcc/ada/rtsfind.ads
../../gcc/gcc/ada/freeze.ads
../../gcc/gcc/ada/lib.ads
../../gcc/gcc/ada/lib-xref.ads
../../gcc/gcc/ada/namet.ads
../../gcc/gcc/ada/nlists.ads
ada/nmake.ads
../../gcc/gcc/ada/output.ads
../../gcc/gcc/ada/opt.ads
../../gcc/gcc/ada/hostparm.ads
../../gcc/gcc/ada/restrict.ads
../../gcc/gcc/ada/rident.ads
../../gcc/gcc/ada/scans.ads
../../gcc/gcc/ada/scn.ads
../../gcc/gcc/ada/sem.ads
../../gcc/gcc/ada/sem_ch8.ads
../../gcc/gcc/ada/sem_eval.ads
../../gcc/gcc/ada/sem_res.ads
../../gcc/gcc/ada/sem_type.ads
../../gcc/gcc/ada/sinput.ads
../../gcc/gcc/ada/stand.ads
../../gcc/gcc/ada/style.ads
../../gcc/gcc/ada/stringt.ads
../../gcc/gcc/ada/targparm.ads
../../gcc/gcc/ada/tbuild.ads
../../gcc/gcc/ada/ttypes.ads
../../gcc/gcc/ada/get_targ.ads
../../gcc/gcc/ada/atree.adb
../../gcc/gcc/ada/tree_io.ads


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

* [Bug ada/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.c
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
  2003-07-13 19:17 ` [Bug ada/11514] " dhazeghi at yahoo dot com
@ 2003-07-13 19:32 ` pinskia at physics dot uc dot edu
  2003-07-14  2:05 ` [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.c --- walk_tree does not know about PLACEHOLDER_EXPR pinskia at physics dot uc dot edu
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-13 19:32 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-13 19:32 -------
PLACEHOLDER_EXPR is gimple so it should be handled in walk_tree on the tree-ssa 
branch but it is not.  This is still a P1 because it most likely also is busted on all targets.


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.c --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
  2003-07-13 19:17 ` [Bug ada/11514] " dhazeghi at yahoo dot com
  2003-07-13 19:32 ` pinskia at physics dot uc dot edu
@ 2003-07-14  2:05 ` pinskia at physics dot uc dot edu
  2003-07-18 20:16 ` [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb " steven at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-14  2:05 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|ada                         |middle-end
     Ever Confirmed|                            |1
 GCC target triplet|i?86-*-linux                |*-*-*
           Keywords|                            |build
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-14 02:05:57
               date|                            |
            Summary|[tree-ssa] ICE on bootstrap |[tree-ssa] ICE on bootstrap
                   |with ada in sem_util.c      |with ada in sem_util.c ---
                   |                            |walk_tree does not know
                   |                            |about PLACEHOLDER_EXPR


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-14 02:05 -------
Okay I just looked into the sources for walk_tree and since PLACEHOLDER_EXPR is 
defined in tree.def in the gcc, that makes it gimple, walk_tree should know how to handle 
it, this is a bug.  Changing to middle-end because walk_tree is considered the middle-
end.  This is also target independent.


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (2 preceding siblings ...)
  2003-07-14  2:05 ` [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.c --- walk_tree does not know about PLACEHOLDER_EXPR pinskia at physics dot uc dot edu
@ 2003-07-18 20:16 ` steven at gcc dot gnu dot org
  2003-07-18 21:14 ` steven at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-07-18 20:16 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com
           Severity|critical                    |normal
            Summary|[tree-ssa] ICE on bootstrap |[tree-ssa] ICE on bootstrap
                   |with ada in sem_util.c ---  |with ada in sem_util.adb ---
                   |walk_tree does not know     |walk_tree does not know
                   |about PLACEHOLDER_EXPR      |about PLACEHOLDER_EXPR
   Target Milestone|3.4                         |tree-ssa


------- Additional Comments From steven at gcc dot gnu dot org  2003-07-18 20:16 -------
[  Jason, added you to CC: since you're the "GIMPLE man"...
   Please correct me if I am wrong somewhere :-)  ]

Andrew,

You say in the audit log that PLACEHOLDER_EXPR is GIMPLE, but you seem to miss
an important point: GIMPLE is not the same as the set of tree nodes defined in
tree.def.  Your remark that "since PLACEHOLDER_EXPR is defined in tree.def in
the gcc, that makes it gimple" is simply not true.

In fact, PLACEHOLDER_EXPR is used in exactly one front end (Ada) and the only
reason why it is in tree.def is because the Ada front end apparently was allowed
in the past to clutter the language independent tree code set with language
specific ones.  As far as I can tell, PLACEHOLDER_EXPRs are necessary in Ada
because they represent information about information that is not available at
the time when Ada expands its native AST to RTL.

Once Ada starts producing functions as trees, it should be perfectly feasible
for them to eliminate PLACEHOLDER_EXPRs in an extra pass before expanding (in
fact, they will have to since the GIMPLE tree would have to represent the full
semantics of the Ada program unit).  At that point the PLACEHOLDER_EXPR
definition should be moved out of tree.def and into ada/ada-tree.def

That was the PLACEHOLDER_EXPR discusion....



Now about the actual problem here:  Why would Ada end up using walk_tree() in
the first place?

The function walk_tree() is intentended to be used by front ends which produce
functions at trees, or at least partially complete trees.  Ada does neither,
instead it produces its own AST and expands to RTL from there directly,
bypassing the functions-as-trees infrastructure.  Therefore, the real problem is
that Ada somehow ends up using walk_tree() when it should not.  Unfortunately
there is no GDB backtrace in the audit log of this bug, so it's hard to tell
where things go awry.

Dara, could you distill a smaller test case from the problem?  Maybe there's
some kind of Ada preprocessor that can collect the relevant information from all
those modules???

I am trying to build Ada now for the first time (never had the appropriate GNAT
until last week when I installed RH9), and if there's a test case we can hunt
this problem down more easily.

Gr.


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (3 preceding siblings ...)
  2003-07-18 20:16 ` [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb " steven at gcc dot gnu dot org
@ 2003-07-18 21:14 ` steven at gcc dot gnu dot org
  2003-07-19  8:42 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-07-18 21:14 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-07-14 02:05:57         |2003-07-18 21:14:15
               date|                            |


------- Additional Comments From steven at gcc dot gnu dot org  2003-07-18 21:14 -------
OK I have a trace for this one.  The problem seems to be that the default lang
hook.  Jason, it turns out to be a patch of yours:

2003-01-02  Jason Merrill  <jason@redhat.com>
                                                                               
                                 
        * c-simplify.c (c_genericize): Dump more info about the function.
        Use dump_function.
        * tree-dump.c (dump_function): Move from cp/optimize.c.
        * tree-dump.h: Declare it.
                                                                               
                                 
        * gimplify.c (mostly_copy_tree_r): Remove unnecessary cases.
        (unshare_expr): New fn.
        * tree-inline.c (mark_local_for_remap_r, unsave_r): New fns, adapted
        from C++ versions.
        (lhd_unsave_expr_now): Likewise.
        * tree.c (unsave_expr_now): Remove.
        (unsafe_for_reeval): Labels and BIND_EXPRs are only somewhat unsafe.

The problem is that tree-inline.c:lhd_unsave_expr_now uses
walk_tree_without_duplicates.

Jason, can you fix this, I don't understand what you tried to do here with this
change, and I can't find a message for it in the mailing list archives...




(gdb) set args -g -O2 -gnatpg -gnata -I- -I. -Iada -I../../tree-ssa/gcc/ada
../../tree-ssa/gcc/ada/sem_util.adb -o ada/sem_util.o
(gdb) run
Starting program: /home/steven/devel/ssabuild/gcc/stage1/gnat1 -g -O2 -gnatpg
-gnata -I- -I. -Iada -I../../tree-ssa/gcc/ada
../../tree-ssa/gcc/ada/sem_util.adb -o ada/sem_util.o
Breakpoint 2 at 0x40048c56
Breakpoint 3 at 0x40047c89
 sem_util.add_access_type_to_process sem_util.alignment_in_bits
sem_util.apply_compile_time_constraint_error
Breakpoint 1, fancy_abort (file=0x860d540 "../../tree-ssa/gcc/tree-inline.c",
line=1653,
    function=0x860d5f4 "walk_tree") at ../../tree-ssa/gcc/diagnostic.c:1468
1468      internal_error ("in %s, at %s:%d", function, trim_filename (file), line);
(gdb) where
#0  fancy_abort (file=0x860d540 "../../tree-ssa/gcc/tree-inline.c", line=1653,
function=0x860d5f4 "walk_tree")
    at ../../tree-ssa/gcc/diagnostic.c:1468
#1  0x08478527 in walk_tree (tp=0x40171b38, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1653
#2  0x084780f9 in walk_tree (tp=0x40258a98, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#3  0x084780f9 in walk_tree (tp=0x40171c38, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#4  0x084780f9 in walk_tree (tp=0x4033b318, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#5  0x084780f9 in walk_tree (tp=0x40340ec0, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#6  0x084782b7 in walk_tree (tp=0x40340ef8, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1592
#7  0x084780f9 in walk_tree (tp=0x40340f14, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#8  0x084780f9 in walk_tree (tp=0x40340f30, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#9  0x084782b7 in walk_tree (tp=0x40340f34, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1592
#10 0x084780f9 in walk_tree (tp=0x40340fa0, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#11 0x084782b7 in walk_tree (tp=0x40340e1c, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1592
#12 0x084780f9 in walk_tree (tp=0xbfffd8b0, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#13 0x08478565 in walk_tree_without_duplicates (tp=0xbfffd8b0, func=0x8478795
<mark_local_for_remap_r>,
    data=0xbfffd870) at ../../tree-ssa/gcc/tree-inline.c:1677
#14 0x084789ad in lhd_unsave_expr_now (expr=0x4033b9e0) at
../../tree-ssa/gcc/tree-inline.c:1895
#15 0x082b4287 in expand_expr (exp=0x403432a0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_STACK_PARM)
    at ../../tree-ssa/gcc/expr.c:7054
#16 0x084d7efc in store_one_arg (arg=0xbfffdbb0, argblock=0x40149040, flags=256,
variable_size=0,
    reg_parm_stack_space=0) at ../../tree-ssa/gcc/calls.c:4341
#17 0x084d5633 in expand_call (exp=0x4033ba00, target=0x0, ignore=0) at
../../tree-ssa/gcc/calls.c:2943
#18 0x082b61b0 in expand_expr (exp=0x4033ba00, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL)
    at ../../tree-ssa/gcc/expr.c:7935
#19 0x08276e5d in do_jump (exp=0x4033ba00, if_false_label=0x0,
if_true_label=0x40341e18)
    at ../../tree-ssa/gcc/dojump.c:564
#12 0x084780f9 in walk_tree (tp=0xbfffd8b0, func=0x8478795
<mark_local_for_remap_r>, data=0xbfffd870,
    htab_=0x8930410) at ../../tree-ssa/gcc/tree-inline.c:1527
#13 0x08478565 in walk_tree_without_duplicates (tp=0xbfffd8b0, func=0x8478795
<mark_local_for_remap_r>,
    data=0xbfffd870) at ../../tree-ssa/gcc/tree-inline.c:1677
#14 0x084789ad in lhd_unsave_expr_now (expr=0x4033b9e0) at
../../tree-ssa/gcc/tree-inline.c:1895
#15 0x082b4287 in expand_expr (exp=0x403432a0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_STACK_PARM)
    at ../../tree-ssa/gcc/expr.c:7054
#16 0x084d7efc in store_one_arg (arg=0xbfffdbb0, argblock=0x40149040, flags=256,
variable_size=0,
    reg_parm_stack_space=0) at ../../tree-ssa/gcc/calls.c:4341
#17 0x084d5633 in expand_call (exp=0x4033ba00, target=0x0, ignore=0) at
../../tree-ssa/gcc/calls.c:2943
#18 0x082b61b0 in expand_expr (exp=0x4033ba00, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL)
    at ../../tree-ssa/gcc/expr.c:7935
#19 0x08276e5d in do_jump (exp=0x4033ba00, if_false_label=0x0,
if_true_label=0x40341e18)
    at ../../tree-ssa/gcc/dojump.c:564
#20 0x082769a9 in do_jump (exp=0x4033bac0, if_false_label=0x0,
if_true_label=0x40341e18)
    at ../../tree-ssa/gcc/dojump.c:410
#21 0x08276378 in do_jump (exp=0x4033bae0, if_false_label=0x40341dec,
if_true_label=0x40341e18)
    at ../../tree-ssa/gcc/dojump.c:259
#22 0x0845aeb8 in expand_start_cond (cond=0x4033bae0, exitflag=0) at
../../tree-ssa/gcc/stmt.c:2550
#23 0x080736cf in tree_transform (gnat_node=1669) at
../../tree-ssa/gcc/ada/trans.c:2064
#24 0x0806f670 in gnat_to_code (gnat_node=1669) at
../../tree-ssa/gcc/ada/trans.c:238
#25 0x08076a07 in tree_transform (gnat_node=1656) at
../../tree-ssa/gcc/ada/trans.c:3466
#26 0x0806f670 in gnat_to_code (gnat_node=1656) at
../../tree-ssa/gcc/ada/trans.c:238
#27 0x08074c95 in tree_transform (gnat_node=1640) at
../../tree-ssa/gcc/ada/trans.c:2681
#28 0x0806f670 in gnat_to_code (gnat_node=1640) at
../../tree-ssa/gcc/ada/trans.c:238
#29 0x08078999 in process_decls (gnat_decls=-99999960, gnat_decls2=0,
gnat_end_list=0, pass1p=1, pass2p=1)
    at ../../tree-ssa/gcc/ada/trans.c:4351
#30 0x080760d7 in tree_transform (gnat_node=1487) at
../../tree-ssa/gcc/ada/trans.c:3176
#31 0x0806f670 in gnat_to_code (gnat_node=1487) at
../../tree-ssa/gcc/ada/trans.c:238
#32 0x080762a2 in tree_transform (gnat_node=1355) at
../../tree-ssa/gcc/ada/trans.c:3233
#33 0x0806f670 in gnat_to_code (gnat_node=1355) at
../../tree-ssa/gcc/ada/trans.c:238
#34 0x0806f652 in gigi (gnat_root=1355, max_gnat_node=180002, number_name=20671,
nodes_ptr=0x4045e008,
    next_node_ptr=0x40b3d008, prev_node_ptr=0x401a7008, elists_ptr=0x89d2c30,
elmts_ptr=0x892e018,
    strings_ptr=0x8b0fee8, string_chars_ptr=0x4029a008,
list_headers_ptr=0x40c01008, number_units=62,
    file_info_ptr=0xbfffea40 "0??\021", standard_integer=42,
standard_long_long_float=66,
    standard_exception_type=1033, gigi_operating_mode=0) at
../../tree-ssa/gcc/ada/trans.c:221
internal error - unimplemented function unk_lang_create_fundamental_type called.


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (4 preceding siblings ...)
  2003-07-18 21:14 ` steven at gcc dot gnu dot org
@ 2003-07-19  8:42 ` steven at gcc dot gnu dot org
  2003-08-20 10:59 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-07-19  8:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From steven at gcc dot gnu dot org  2003-07-19 08:42 -------
I believe that in the mean time, this should fix the problem.

Index: tree-inline.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.26.2.34
diff -c -3 -p -r1.26.2.34 tree-inline.c
*** tree-inline.c       14 Jul 2003 21:18:48 -0000      1.26.2.34
--- tree-inline.c       19 Jul 2003 08:39:42 -0000
*************** walk_tree (tp, func, data, htab_)
*** 1578,1583 ****
--- 1578,1584 ----
        case ENUMERAL_TYPE:
        case BLOCK:
        case RECORD_TYPE:
+       case PLACEHOLDER_EXPR:
        case SSA_NAME:
          /* None of thse have subtrees other than those already walked
             above.  */


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (5 preceding siblings ...)
  2003-07-19  8:42 ` steven at gcc dot gnu dot org
@ 2003-08-20 10:59 ` pinskia at gcc dot gnu dot org
  2003-08-29 21:14 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-20 10:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |billingd at gcc dot gnu dot
                   |                            |org


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-20 10:59 -------
*** Bug 11989 has been marked as a duplicate of this bug. ***


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (6 preceding siblings ...)
  2003-08-20 10:59 ` pinskia at gcc dot gnu dot org
@ 2003-08-29 21:14 ` jason at gcc dot gnu dot org
  2003-10-22  4:07 ` jason at gcc dot gnu dot org
  2003-11-13 20:57 ` steven at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2003-08-29 21:14 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at redhat dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (7 preceding siblings ...)
  2003-08-29 21:14 ` jason at gcc dot gnu dot org
@ 2003-10-22  4:07 ` jason at gcc dot gnu dot org
  2003-11-13 20:57 ` steven at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2003-10-22  4:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jason at redhat dot com     |steven at gcc dot gnu dot
                   |                            |org


------- Additional Comments From jason at gcc dot gnu dot org  2003-10-22 02:41 -------
Steven, your patch is OK, so long as you also apply it to the trunk.


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

* [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb --- walk_tree does not know about PLACEHOLDER_EXPR
  2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
                   ` (8 preceding siblings ...)
  2003-10-22  4:07 ` jason at gcc dot gnu dot org
@ 2003-11-13 20:57 ` steven at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-11-13 20:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2003-11-13 20:57 -------
Patch commited to tree-ssa branch and to mainline.  Like Ada would build with 
tree-ssa, NOT! but, pro forma :-) 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2003-11-13 20:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-13 19:15 [Bug ada/11514] New: [tree-ssa] ICE on bootstrap with ada in sem_util.c dhazeghi at yahoo dot com
2003-07-13 19:17 ` [Bug ada/11514] " dhazeghi at yahoo dot com
2003-07-13 19:32 ` pinskia at physics dot uc dot edu
2003-07-14  2:05 ` [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.c --- walk_tree does not know about PLACEHOLDER_EXPR pinskia at physics dot uc dot edu
2003-07-18 20:16 ` [Bug middle-end/11514] [tree-ssa] ICE on bootstrap with ada in sem_util.adb " steven at gcc dot gnu dot org
2003-07-18 21:14 ` steven at gcc dot gnu dot org
2003-07-19  8:42 ` steven at gcc dot gnu dot org
2003-08-20 10:59 ` pinskia at gcc dot gnu dot org
2003-08-29 21:14 ` jason at gcc dot gnu dot org
2003-10-22  4:07 ` jason at gcc dot gnu dot org
2003-11-13 20:57 ` steven 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).