public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pluto at agmk dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/22533] [4.1/4.2 regression] Ada ICE during bootstrap on many platforms
Date: Sat, 26 Nov 2005 11:57:00 -0000	[thread overview]
Message-ID: <20051126115714.15729.qmail@sourceware.org> (raw)
In-Reply-To: <bug-22533-7667@http.gcc.gnu.org/bugzilla/>



------- Comment #43 from pluto at agmk dot net  2005-11-26 11:57 -------
i've done quick tests on ix86:

$ stage1/xgcc -Bstage1/ -c -gnatpg -gnata -g -I- -I. -Iada
-I../../gcc/ada ../../gcc/ada/a-except.adb -o ada/a-except.o -fno-inline -O1
-march=i{486,586,686,pentium,pentiumpro}

WORKS.

but -march={athlon,pentium2,pentium3,pentium4} FAILS.
the i386 variant with -mmx option FAILS either.

$ stage1/xgcc -Bstage1/ -c -gnatpg -gnata -g -I- -I. -Iada -I../../gcc/ada
../../gcc/ada/a-except.adb -o ada/a-except.o -fno-inline -O1 -march=athlon
raised STORAGE_ERROR : stack overflow (or erroneous memory access)

Program received signal SIGSEGV, Segmentation fault.
0x0839c8c5 in insert_insn_on_edge ()

(gdb) bt
#0  0x0839c8c5 in insert_insn_on_edge ()
#1  0x085c5e6b in fixup_abnormal_edges ()
#2  0x0859b30f in convert_regs ()
#3  0x0859b684 in reg_to_stack ()
#4  0x0859b6bb in rest_of_handle_stack_regs ()
#5  0x0860dc88 in execute_one_pass ()
#6  0x0860dd47 in execute_pass_list ()
#7  0x0860dd67 in execute_pass_list ()
#8  0x0860dd67 in execute_pass_list ()
#9  0x08328868 in tree_rest_of_compilation ()
#10 0x0805e8d5 in gnat_expand_body ()
#11 0x08656a58 in cgraph_expand_function ()
#12 0x08656bed in cgraph_expand_all_functions ()
#13 0x08657109 in cgraph_optimize ()
#14 0x0805dd9e in gnat_parse_file ()
#15 0x085e68a4 in compile_file ()
#16 0x085e7f0d in do_compile ()
#17 0x085e7f75 in toplev_main ()
#18 0x0832472c in main ()

on amd64:

Program received signal SIGSEGV, Segmentation fault.
0x00000000007143a8 in insert_insn_on_edge (pattern=0x2a96415410, e=0x0)
at ../../gcc/cfgrtl.c:1412
1412      gcc_assert (!((e->flags & EDGE_ABNORMAL) && EDGE_CRITICAL_P (e)));

(gdb) bt
#0  0x00000000007143a8 in insert_insn_on_edge (pattern=0x2a96415410, e=0x0)
    at ../../gcc/cfgrtl.c:1412

During symbol reading, Incomplete CFI data; unspecified registers
at 0x0000000000714398.
(...)

#1  0x00000000009acfed in fixup_abnormal_edges () at ../../gcc/reload1.c:8252

During symbol reading, Incomplete CFI data; unspecified registers at
0x00000000009acdb3.
(...)

#2  0x000000000097ef8d in convert_regs (file=0x0)
    at ../../gcc/reg-stack.c:3097
#3  0x000000000097f328 in reg_to_stack (file=0x0)
    at ../../gcc/reg-stack.c:3207
#4  0x000000000097f35f in rest_of_handle_stack_regs ()
    at ../../gcc/reg-stack.c:3230
#5  0x0000000000a001ae in execute_one_pass (pass=0xee2360)
    at ../../gcc/passes.c:828
#6  0x0000000000a0026d in execute_pass_list (pass=0xee2360)
    at ../../gcc/passes.c:860
#7  0x0000000000a0028b in execute_pass_list (pass=0xee2b20)
    at ../../gcc/passes.c:861
#8  0x0000000000a0028b in execute_pass_list (pass=0xee2ac0)
    at ../../gcc/passes.c:861
#9  0x0000000000691057 in tree_rest_of_compilation (fndecl=0x2a95e1e500)
    at ../../gcc/tree-optimize.c:419
#10 0x00000000004192de in gnat_expand_body (gnu_decl=0x2a95e1e500)
    at ../../gcc/ada/misc.c:649
#11 0x0000000000a5774f in cgraph_expand_function (node=0x2a95ea1630)
    at ../../gcc/cgraphunit.c:1055
#12 0x0000000000a57917 in cgraph_expand_all_functions ()
    at ../../gcc/cgraphunit.c:1121
#13 0x0000000000a57ea3 in cgraph_optimize () at ../../gcc/cgraphunit.c:1278
#14 0x0000000000418612 in gnat_parse_file (set_yydebug=0)
    at ../../gcc/ada/misc.c:245
#15 0x00000000009d2f2b in compile_file () at ../../gcc/toplev.c:990
#16 0x00000000009d4876 in do_compile () at ../../gcc/toplev.c:1948
#17 0x00000000009d48da in toplev_main (argc=19, argv=0x7fbffff508)
    at ../../gcc/toplev.c:1980
#18 0x000000000068cbff in main (argc=19, argv=0x7fbffff508)
    at ../../gcc/main.c:35

i'll check this witout Uros' switch-mmx-mode patchset.


-- 


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


  parent reply	other threads:[~2005-11-26 11:57 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-22533-7667@http.gcc.gnu.org/bugzilla/>
2005-10-06 19:06 ` [Bug ada/22533] [4.1 regression] ICE in get_base_var ro at gcc dot gnu dot org
2005-10-12 11:55 ` rguenth at gcc dot gnu dot org
2005-10-12 12:43 ` schwab at suse dot de
2005-10-12 19:33 ` laurent at guerby dot net
2005-10-12 19:36 ` pinskia at gcc dot gnu dot org
2005-10-14 17:26 ` pinskia at gcc dot gnu dot org
2005-10-19  3:13 ` pinskia at gcc dot gnu dot org
2005-10-19  3:14 ` pinskia at gcc dot gnu dot org
2005-10-31  4:10 ` mmitchel at gcc dot gnu dot org
2005-11-04 19:29 ` laurent at guerby dot net
2005-11-05  0:23 ` uweigand at gcc dot gnu dot org
2005-11-12 16:52 ` laurent at guerby dot net
2005-11-15  6:31 ` [Bug ada/22533] [4.1 regression] Ada ICE during bootstrap on many platforms ebotcazou at gcc dot gnu dot org
2005-11-15  6:32 ` ebotcazou at gcc dot gnu dot org
2005-11-15  7:47 ` ebotcazou at gcc dot gnu dot org
2005-11-15 18:31 ` uweigand at gcc dot gnu dot org
2005-11-16 17:27 ` ebotcazou at gcc dot gnu dot org
2005-11-17  1:09 ` uweigand at gcc dot gnu dot org
2005-11-22  1:00 ` [Bug ada/22533] [4.1/4.2 " pluto at agmk dot net
2005-11-23 11:11 ` ebotcazou at gcc dot gnu dot org
2005-11-23 19:16 ` pluto at agmk dot net
2005-11-23 19:36 ` ebotcazou at gcc dot gnu dot org
2005-11-23 19:47 ` pluto at agmk dot net
2005-11-23 23:28 ` ebotcazou at gcc dot gnu dot org
2005-11-23 23:29 ` ebotcazou at gcc dot gnu dot org
2005-11-24 11:14 ` ebotcazou at gcc dot gnu dot org
2005-11-24 14:46 ` pluto at agmk dot net
2005-11-24 20:21 ` pluto at agmk dot net
2005-11-24 23:29 ` debian-gcc at lists dot debian dot org
2005-11-25 16:04 ` pluto at agmk dot net
2005-11-26 11:57 ` pluto at agmk dot net [this message]
2005-11-26 12:40 ` pluto at agmk dot net
2005-12-06  7:29 ` ebotcazou at gcc dot gnu dot org
2005-12-22 17:59 ` ebotcazou at gcc dot gnu dot org
2006-01-03 12:38 ` ebotcazou at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051126115714.15729.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).