public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
@ 2005-10-15 22:26 ` pinskia at gcc dot gnu dot org
  2005-10-17  2:00 ` wilson at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-15 22:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from pinskia at gcc dot gnu dot org  2005-10-15 22:26 -------
(In reply to comment #13)
> Ada bugs are not release critical; removing target milestone.

Even though this is only known to effect Ada, it could most likely effect C++
also, just nobody has found a testcase for this.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.3


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
  2005-10-15 22:26 ` [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada pinskia at gcc dot gnu dot org
@ 2005-10-17  2:00 ` wilson at gcc dot gnu dot org
  2005-10-17  2:03 ` wilson at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-17  2:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from wilson at gcc dot gnu dot org  2005-10-17 02:00 -------
It is dying in rest_of_handle_flow2 -> split_all_insns -> verify_flow_info.  We
have non-call insns with EDGE_ABNORMAL_CALL edges attached to them.

The insns are coming from post-reload call insn splits.  Before splitting, we
have

(call_insn 118 116 3807 4 (parallel [
            (set (reg:OI 8 r8)
                (call (mem:DI (symbol_ref:DI
("ada__text_io__editing__parse_num\ber_string") [flags 0x3] <function_decl
0x2a9590de00 ada__text_io__editing__par\se_number_string>) [0 S8 A64])
                    (const_int 1 [0x1])))
            (clobber (reg:DI 320 b0))
            (clobber (scratch:DI))
            (clobber (scratch:DI))
        ]) 257 {call_value_gp} (insn_list:REG_DEP_TRUE 117 (nil))
    (expr_list:REG_EH_REGION (const_int 1 [0x1])
        (nil))
    (expr_list:REG_DEP_TRUE (use (reg:DI 1 r1))
        (expr_list:REG_DEP_TRUE (use (reg:TI 120 out0 [ D.1574 ]))
            (nil))))

after splitting we have

(call_insn 4891 116 4892 4 (parallel [
            (set (reg:OI 8 r8)
                (call (mem:DI (symbol_ref:DI
("ada__text_io__editing__parse_num\ber_string") [flags 0x3] <function_decl
0x2a9590de00 ada__text_io__editing__par\se_number_string>) [0 S8 A64])
                    (const_int 0 [0x0])))
            (clobber (reg:DI 320 b0))
        ]) 254 {call_value_nogp} (nil)
    (expr_list:REG_EH_REGION (const_int 1 [0x1])
        (nil))
    (expr_list:REG_DEP_TRUE (use (reg:DI 1 r1))
        (expr_list:REG_DEP_TRUE (use (reg:TI 120 out0 [ D.1574 ]))
            (nil))))

(insn 4892 4891 4893 4 (set (reg:DI 1 r1)
        (plus:DI (reg/f:DI 111 loc79)
            (const_int -80 [0xffffffffffffffb0]))) 105 {adddi3} (nil)
    (nil))

(insn 4893 4892 3807 4 (set (reg:DI 1 r1)
        (mem:DI (reg:DI 1 r1) [0 S8 A64])) 5 {*movdi_internal} (nil)
    (expr_list:REG_EH_REGION (const_int 1 [0x1])
        (nil)))

We call find_bb_boundaries to split this into two blocks, and then
purge_dead_edges should delete the abnormal call edge on the load.

But there is a problem here... Ada sets flag_non_call_exceptions by default. 
So the load is a trapping insn, just not a call-trapping insn.

In purge_dead_edges, we first verify that an EH edge is OK, then we verify that
an abnormal call edge is OK.  But since an abnormal call edge is always an EH
edge, the first test triggers, and passes, because we do need an EH edge here.

We can fix this problem by switching the order of the tests.

With this patch, a cross-compiler ada build got all of the way to gnattools,
where it died building make.adb.  This means libada built successfully.  The
make.adb error is a different unrelated problem.
gcc -c -I./ -I/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/adalib/../adainclude
-\I/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/adalib/ -I.
-I/home/wilson/GCC/gcc/\gcc/ada -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototype\s -fno-common -gnatpg -gnata -I-
/home/wilson/GCC/gcc/gcc/ada/gnatvsn.adb
gcc -c -I./ -I/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/adalib/../adainclude
-\I/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/adalib/ -I.
-I/home/wilson/GCC/gcc/\gcc/ada -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototype\s -fno-common -gnatpg -gnata -I-
/home/wilson/GCC/gcc/gcc/ada/make.adb
make.adb:3577:45: Unmatched actual in call
make.adb:3581:45: Unmatched actual in call
make.adb:3804:13: invalid parameter list in call (use -gnatf for details)
make.adb:5709:10: invalid parameter list in call (use -gnatf for details)
mlib.ads:75:15: "Attribute" is undefined
mlib.ads:75:28: "Time_Stamps" is undefined

I am assuming this is good enough to close the problem after a proper bootstrap
test.  I'll have to try a native ia64 bootstrap now. 


-- 

wilson at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |wilson at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-06-12 15:03:55         |2005-10-17 02:00:49
               date|                            |


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
  2005-10-15 22:26 ` [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada pinskia at gcc dot gnu dot org
  2005-10-17  2:00 ` wilson at gcc dot gnu dot org
@ 2005-10-17  2:03 ` wilson at gcc dot gnu dot org
  2005-10-17 12:06 ` schwab at suse dot de
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-17  2:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from wilson at gcc dot gnu dot org  2005-10-17 02:03 -------
Created an attachment (id=10005)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10005&action=view)
patch to fix ia64-linux libada build failure

And here's the patch.  It is simple enough that it should be safe.


-- 


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-17  2:03 ` wilson at gcc dot gnu dot org
@ 2005-10-17 12:06 ` schwab at suse dot de
  2005-10-18  0:23 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: schwab at suse dot de @ 2005-10-17 12:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from schwab at suse dot de  2005-10-17 12:06 -------
Bootstrap was successful and most Ada tests pass now
(http://gcc.gnu.org/ml/gcc-testresults/2005-10/msg00730.html).


-- 


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-10-17 12:06 ` schwab at suse dot de
@ 2005-10-18  0:23 ` cvs-commit at gcc dot gnu dot org
  2005-10-18  0:52 ` wilson at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-18  0:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from cvs-commit at gcc dot gnu dot org  2005-10-18 00:23 -------
Subject: Bug 17356

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     wilson@gcc.gnu.org      2005-10-18 00:22:53

Modified files:
        gcc            : ChangeLog cfgrtl.c 

Log message:
        Fix IA-64 libada build failure, abnormal call edges on non-call insns.
        PR rtl-optimization/17356
        * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
        checking for EDGE_EH.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10176&r2=2.10177
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cfgrtl.c.diff?cvsroot=gcc&r1=1.181&r2=1.182


-- 


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2005-10-18  0:23 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-18  0:52 ` wilson at gcc dot gnu dot org
  2005-10-18  0:56 ` [Bug rtl-optimization/17356] [4.0 " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-18  0:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from wilson at gcc dot gnu dot org  2005-10-18 00:52 -------
Fixed on mainline, still broken on gcc-4.0.x branch.  I've started a builds to
test it.  This will take a while.


-- 


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


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

* [Bug rtl-optimization/17356] [4.0 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2005-10-18  0:52 ` wilson at gcc dot gnu dot org
@ 2005-10-18  0:56 ` pinskia at gcc dot gnu dot org
  2005-10-19 23:10 ` wilson at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-18  0:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from pinskia at gcc dot gnu dot org  2005-10-18 00:56 -------
(In reply to comment #19)
> Fixed on mainline, still broken on gcc-4.0.x branch.  I've started a builds to
> test it.  This will take a while.

Removing the 4.1 regression marker than since it will be a while.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.0 4.0.2
      Known to work|                            |4.1.0
            Summary|[4.0/4.1 Regression] [Ada]  |[4.0 Regression] [Ada]
                   |[ia64] ACATS c41325a & other|[ia64] ACATS c41325a & other
                   |ICE, also while building    |ICE, also while building
                   |libada                      |libada


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


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

* [Bug rtl-optimization/17356] [4.0 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2005-10-18  0:56 ` [Bug rtl-optimization/17356] [4.0 " pinskia at gcc dot gnu dot org
@ 2005-10-19 23:10 ` wilson at gcc dot gnu dot org
  2005-10-31 23:24 ` wilson at gcc dot gnu dot org
  2005-10-31 23:25 ` wilson at gcc dot gnu dot org
  9 siblings, 0 replies; 13+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-19 23:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from wilson at gcc dot gnu dot org  2005-10-19 23:10 -------
I done bootstrap tests for the gcc-4.0.x branch.  I bootstrapped all default
languages plus ada with and without the patch.  There were no regressions. 
There was also no failure as reported in the PR, which seemed funny, until I
reread the PR.

The failures reported here only happen with --enable-checking.  So what we have
here is a minor internal inconsistency, which has caused no known end user
problems.  From my investigation, I think the worst this problem will cause is
missed optimizations.  Since nothing is seriously broken, I think applying the
patch to gcc-4.0 branch is an unnecessary risk.

I no longer think my patch is completely safe, as I now think I screwed up.  I
think there are 3 kinds of edges we need to deal with here, EH edges, abnormal
call EH edges, and abnormal call non-EH edges, and we need to perform both
tests for the abnormal call EH edges instead of switching the order of the
tests as I did.  I need to look at this a bit more and check to see if this is
the case.  If I did screw up, then I've got plenty of time to fix this before
the gcc-4.1 release so things are OK there.  But on the gcc-4.0.x branch, I'd
be making things worse than they already are.  Hence, I'd rather leave well
enough alone on the gcc-4.0.x branch.

In summary, I think we should close this as fixed in gcc-4.1 and as a wontfix
for gcc-4.0.  Unless someone wants to argue otherwise.


-- 


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


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

* [Bug rtl-optimization/17356] [4.0 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2005-10-19 23:10 ` wilson at gcc dot gnu dot org
@ 2005-10-31 23:24 ` wilson at gcc dot gnu dot org
  2005-10-31 23:25 ` wilson at gcc dot gnu dot org
  9 siblings, 0 replies; 13+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-31 23:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from wilson at gcc dot gnu dot org  2005-10-31 23:24 -------
Subject: Bug 17356

Author: wilson
Date: Mon Oct 31 23:24:36 2005
New Revision: 106297

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106297
Log:
Rewrite fix for PR 17356, fix for enable checking ada build failure.
cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgrtl.c


-- 


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


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

* [Bug rtl-optimization/17356] [4.0 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
       [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2005-10-31 23:24 ` wilson at gcc dot gnu dot org
@ 2005-10-31 23:25 ` wilson at gcc dot gnu dot org
  9 siblings, 0 replies; 13+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-31 23:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from wilson at gcc dot gnu dot org  2005-10-31 23:25 -------
Fixed for gcc-4.1.  Won't fix for gcc-4.0.3.


-- 

wilson at gcc dot gnu dot org changed:

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


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
  2004-09-08 14:49 [Bug ada/17356] New: [Ada] [ia64] ICE " schwab at suse dot de
  2005-02-27 20:48 ` [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also " schwab at suse dot de
  2005-03-05 19:48 ` pinskia at gcc dot gnu dot org
@ 2005-08-22  1:44 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-22  1:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-08-22 01:42 -------
Ada bugs are not release critical; removing target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.0                       |---


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
  2004-09-08 14:49 [Bug ada/17356] New: [Ada] [ia64] ICE " schwab at suse dot de
  2005-02-27 20:48 ` [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also " schwab at suse dot de
@ 2005-03-05 19:48 ` pinskia at gcc dot gnu dot org
  2005-08-22  1:44 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 19:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

* [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada
  2004-09-08 14:49 [Bug ada/17356] New: [Ada] [ia64] ICE " schwab at suse dot de
@ 2005-02-27 20:48 ` schwab at suse dot de
  2005-03-05 19:48 ` pinskia at gcc dot gnu dot org
  2005-08-22  1:44 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 13+ messages in thread
From: schwab at suse dot de @ 2005-02-27 20:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2005-02-27 15:09 -------
Only happens with --enable-checking. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking


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


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

end of thread, other threads:[~2005-10-31 23:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-17356-50@http.gcc.gnu.org/bugzilla/>
2005-10-15 22:26 ` [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also while building libada pinskia at gcc dot gnu dot org
2005-10-17  2:00 ` wilson at gcc dot gnu dot org
2005-10-17  2:03 ` wilson at gcc dot gnu dot org
2005-10-17 12:06 ` schwab at suse dot de
2005-10-18  0:23 ` cvs-commit at gcc dot gnu dot org
2005-10-18  0:52 ` wilson at gcc dot gnu dot org
2005-10-18  0:56 ` [Bug rtl-optimization/17356] [4.0 " pinskia at gcc dot gnu dot org
2005-10-19 23:10 ` wilson at gcc dot gnu dot org
2005-10-31 23:24 ` wilson at gcc dot gnu dot org
2005-10-31 23:25 ` wilson at gcc dot gnu dot org
2004-09-08 14:49 [Bug ada/17356] New: [Ada] [ia64] ICE " schwab at suse dot de
2005-02-27 20:48 ` [Bug rtl-optimization/17356] [4.0/4.1 Regression] [Ada] [ia64] ACATS c41325a & other ICE, also " schwab at suse dot de
2005-03-05 19:48 ` pinskia at gcc dot gnu dot org
2005-08-22  1:44 ` mmitchel 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).