public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17756] New: contained_3.f90
@ 2004-09-30 19:41 dje at gcc dot gnu dot org
  2004-09-30 20:27 ` [Bug middle-end/17756] [4.0 Regression] contained_3.f90 pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-09-30 19:41 UTC (permalink / raw)
  To: gcc-bugs

-O2/-O3

powerpc-ibm-aix5.2.0.0 error message:
unhandled expression in get_expr_operands():
 <const_decl 3004b080
    type <integer_type 30009680 int4 public SI
        size <integer_cst 30007500 constant invariant 32>
        unit size <integer_cst 30007140 constant invariant 4>
        align 32 symtab 0 alias set 3 precision 32 min <integer_cst 300074c0 -21
47483648> max <integer_cst 300074e0 2147483647>
        pointer_to_this <pointer_type 30016300> reference_to_this <reference_typ
e 30049280>>
    addressable VOID file /farm/dje/src/src/gcc/testsuite/gfortran.fortran-tortu
re/execute/contained_3.f90 line 8
    align 1 context <function_decl 30049780 test> initial <integer_cst 30047640 
3>>

-- 
           Summary: contained_3.f90
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dje at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-*-* ia64-*-* x86_64-*-*
  GCC host triplet: powerpc-*-* ia64-*-* x86_64-*-*
GCC target triplet: powerpc-*-* ia64-*-* x86_64-*-*


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


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

* [Bug middle-end/17756] [4.0 Regression] contained_3.f90
  2004-09-30 19:41 [Bug fortran/17756] New: contained_3.f90 dje at gcc dot gnu dot org
@ 2004-09-30 20:27 ` pinskia at gcc dot gnu dot org
  2004-10-01  1:44 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-30 20:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-30 20:26 -------
This shows up every where, this was reported before to the mailing list.  And when I looked into it, I 
found that the following patch caused it:
2004-09-13  Richard Henderson  <rth@redhat.com>

        PR tree-opt/10528
        * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
        after copying its argument.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|fortran                     |middle-end
     Ever Confirmed|                            |1
  GCC build triplet|powerpc-*-* ia64-*-* x86_64-|
                   |*-*                         |
   GCC host triplet|powerpc-*-* ia64-*-* x86_64-|
                   |*-*                         |
 GCC target triplet|powerpc-*-* ia64-*-* x86_64-|
                   |*-*                         |
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-30 20:27:00
               date|                            |
            Summary|contained_3.f90             |[4.0 Regression]
                   |                            |contained_3.f90
   Target Milestone|---                         |4.0.0


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


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

* [Bug middle-end/17756] [4.0 Regression] contained_3.f90
  2004-09-30 19:41 [Bug fortran/17756] New: contained_3.f90 dje at gcc dot gnu dot org
  2004-09-30 20:27 ` [Bug middle-end/17756] [4.0 Regression] contained_3.f90 pinskia at gcc dot gnu dot org
@ 2004-10-01  1:44 ` rth at gcc dot gnu dot org
  2004-10-04 19:25 ` tobi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-01  1:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug middle-end/17756] [4.0 Regression] contained_3.f90
  2004-09-30 19:41 [Bug fortran/17756] New: contained_3.f90 dje at gcc dot gnu dot org
  2004-09-30 20:27 ` [Bug middle-end/17756] [4.0 Regression] contained_3.f90 pinskia at gcc dot gnu dot org
  2004-10-01  1:44 ` rth at gcc dot gnu dot org
@ 2004-10-04 19:25 ` tobi at gcc dot gnu dot org
  2004-10-05 22:42 ` rth at gcc dot gnu dot org
  2004-10-05 22:42 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-10-04 19:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-10-04 19:25 -------
I can confirm that the gfortran testsuite looks much better with the preliminary
patch rth suggested on IRC:
Index: tree-ssa-operands.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-operands.c,v
retrieving revision 2.48
diff -u -p -r2.48 tree-ssa-operands.c
--- tree-ssa-operands.c 26 Sep 2004 19:53:13 -0000      2.48
+++ tree-ssa-operands.c 4 Oct 2004 19:16:55 -0000
@@ -1004,6 +1004,7 @@ get_expr_operands (tree stmt, tree *expr
     case VAR_DECL:
     case PARM_DECL:
     case RESULT_DECL:
+    case CONST_DECL:
       /* If we found a variable, add it to DEFS or USES depending
         on the operand flags.  */
       add_stmt_operand (expr_p, stmt, flags);

I'll be adding new tests to the testcase
gfortran.fortran-torture/execute/intrinsic_pack.f90 shortly. At -O2 and higher
these tests fail with the same error David reported, and they pass with the
above patch. I'll let those tests commented out, so that no spurious regressions
appear in testsuite runs. Please uncomment them, once the patch for this bug is
in the tree.

The significant lines from the testcase are:
! this is waiting for PR 17756 to be fixed
!   call tests_with_temp()
Remove the first line, remove the exclamation mark from the second line.

Thanks.

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


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


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

* [Bug middle-end/17756] [4.0 Regression] contained_3.f90
  2004-09-30 19:41 [Bug fortran/17756] New: contained_3.f90 dje at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-10-04 19:25 ` tobi at gcc dot gnu dot org
@ 2004-10-05 22:42 ` rth at gcc dot gnu dot org
  2004-10-05 22:42 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-05 22:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-10-05 22:42 -------
Fixed.

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


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


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

* [Bug middle-end/17756] [4.0 Regression] contained_3.f90
  2004-09-30 19:41 [Bug fortran/17756] New: contained_3.f90 dje at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-10-05 22:42 ` rth at gcc dot gnu dot org
@ 2004-10-05 22:42 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-05 22:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-05 22:42 -------
Subject: Bug 17756

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2004-10-05 22:42:35

Modified files:
	gcc            : ChangeLog tree-ssa-operands.c 

Log message:
	PR 17756
	* tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5756&r2=2.5757
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-operands.c.diff?cvsroot=gcc&r1=2.48&r2=2.49



-- 


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


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

end of thread, other threads:[~2004-10-05 22:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30 19:41 [Bug fortran/17756] New: contained_3.f90 dje at gcc dot gnu dot org
2004-09-30 20:27 ` [Bug middle-end/17756] [4.0 Regression] contained_3.f90 pinskia at gcc dot gnu dot org
2004-10-01  1:44 ` rth at gcc dot gnu dot org
2004-10-04 19:25 ` tobi at gcc dot gnu dot org
2004-10-05 22:42 ` rth at gcc dot gnu dot org
2004-10-05 22:42 ` cvs-commit 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).