public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
@ 2005-05-17 23:35 hp at gcc dot gnu dot org
  2005-05-18  6:12 ` [Bug tree-optimization/21638] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-05-17 23:35 UTC (permalink / raw)
  To: gcc-bugs

With LAST_UPDATED: "Tue May 17 13:57:35 UTC 2005" in a unified tree, it
built (with one new test failing compared to "Tue May 17 06:38:21 UTC 2005").
With "Tue May 17 19:08:13 UTC 2005", I get:
...
/home/hp/combined/cris-sim/./gcc/xgcc -B/home/hp/combined/cris-sim/./gcc/
-nostdinc -B/home/hp/combined/cris-sim/cris-elf/v10/new\
lib/ -isystem /home/hp/combined/cris-sim/cris-elf/v10/newlib/targ-include
-isystem /home/hp/combined/combined/newlib/libc/include\
 -B/usr/local/cris-elf/bin/ -B/usr/local/cris-elf/lib/ -isystem
/usr/local/cris-elf/include -isystem /usr/local/cris-elf/sys-incl\
ude -L/home/hp/combined/cris-sim/./ld  -march=v10 -mbest-lib-options
-DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\"  -I. -I/home/hp/co\
mbined/combined/newlib/libc/search  -O2 -DHAVE_RENAME -DHAVE_GETTIMEOFDAY
-D_USE_WRITE -DCOMPACT_CTYPE -fno-builtin      -O2 -g -\
O2  -march=v10 -mbest-lib-options -c
/home/hp/combined/combined/newlib/libc/search/hash.c
/home/hp/combined/combined/newlib/libc/search/hash.c: In function 'flush_meta':
/home/hp/combined/combined/newlib/libc/search/hash.c:515: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[9]: *** [hash.o] Error 1
make[9]: Leaving directory
`/home/hp/combined/cris-sim/cris-elf/v10/newlib/libc/search'

In gdb:
Program received signal SIGSEGV, Segmentation fault.
0x080bb70a in is_gimple_reg_type (type=0x0) at
/home/hp/combined/combined/gcc/tree-gimple.c:263
(gdb) bt
#0  0x080bb70a in is_gimple_reg_type (type=0x0) at
/home/hp/combined/combined/gcc/tree-gimple.c:263
#1  0x080bb897 in is_gimple_val (t=0xb7ec0200) at
/home/hp/combined/combined/gcc/tree-gimple.c:353
#2  0x080a9c11 in verify_expr (tp=0xb7ecad7c, walk_subtrees=0xbffff784,
data=0x0)
    at /home/hp/combined/combined/gcc/tree-cfg.c:3403
#3  0x082a5d93 in walk_tree (tp=0xb7ecad7c, func=0x80a9730 <verify_expr>,
data=0x0, pset=0x0)
    at /home/hp/combined/combined/gcc/tree.c:6473
#4  0x080aa17f in verify_stmt (stmt=0xb7ea21b0, last_in_block=0 '\0') at
/home/hp/combined/combined/gcc/tree-cfg.c:3489
#5  0x080aa5fa in verify_stmts () at tree-flow-inline.h:710
#6  0x080b8586 in verify_ssa (check_modified_stmt=1 '\001') at
/home/hp/combined/combined/gcc/tree-ssa.c:649
#7  0x080ba9c2 in execute_todo (pass=0x83f8350, flags=295, use_required=0 '\0')
    at /home/hp/combined/combined/gcc/tree-optimize.c:558
#8  0x080babba in execute_one_pass (pass=0x83f8350) at
/home/hp/combined/combined/gcc/tree-optimize.c:634
#9  0x080bace1 in execute_pass_list (pass=0x83f8350) at
/home/hp/combined/combined/gcc/tree-optimize.c:656
#10 0x080bad05 in execute_pass_list (pass=0x83c2b00) at
/home/hp/combined/combined/gcc/tree-optimize.c:657
#11 0x080baf5a in tree_rest_of_compilation (fndecl=0xb7fc2a8c) at
/home/hp/combined/combined/gcc/tree-optimize.c:787
#12 0x08059766 in c_expand_body (fndecl=0xb7fc2a8c) at
/home/hp/combined/combined/gcc/c-decl.c:6572
#13 0x082d2bc0 in cgraph_expand_function (node=0xb7fdb144) at
/home/hp/combined/combined/gcc/cgraphunit.c:993
#14 0x082d2d34 in cgraph_expand_all_functions () at
/home/hp/combined/combined/gcc/cgraphunit.c:1057
#15 0x082d2f6d in cgraph_optimize () at
/home/hp/combined/combined/gcc/cgraphunit.c:1159
#16 0x08295966 in compile_file () at
/home/hp/combined/combined/gcc/toplev.c:1013
#17 0x08296c33 in do_compile () at /home/hp/combined/combined/gcc/toplev.c:2123
#18 0x08296c95 in toplev_main (argc=23, argv=0xbffffb74) at
/home/hp/combined/combined/gcc/toplev.c:2155
#19 0x0809dfe3 in main (argc=23, argv=0xbffffb74) at
/home/hp/combined/combined/gcc/main.c:35

With a few "During symbol reading, Incomplete CFI data; unspecified registers at
0x..." pruned.

-- 
           Summary: [4.1 regression] cris-elf broken, dce is_gimple_reg_type
                    (type=0x0) building newlib
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, build
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu (FC2)
GCC target triplet: cris-elf


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
@ 2005-05-18  6:12 ` pinskia at gcc dot gnu dot org
  2005-05-18  9:09 ` giovannibajo at libero dot it
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18  6:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 06:11 -------
There were two major patches which went in during this time.  The CFG inliner and the Jeff Law's patch, 
either could have caused this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
  2005-05-18  6:12 ` [Bug tree-optimization/21638] " pinskia at gcc dot gnu dot org
@ 2005-05-18  9:09 ` giovannibajo at libero dot it
  2005-05-18  9:28 ` hp at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-18  9:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-05-18 09:09 -------
We obviously need the preprocessed source.

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
  2005-05-18  6:12 ` [Bug tree-optimization/21638] " pinskia at gcc dot gnu dot org
  2005-05-18  9:09 ` giovannibajo at libero dot it
@ 2005-05-18  9:28 ` hp at gcc dot gnu dot org
  2005-05-18  9:34 ` hp at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-05-18  9:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-05-18 09:28 -------
In response to comment #2, this is a combined tree, so the sources are trivially
available for all and you shouldn't need to be handed preprocessed code
separately.  Having said that, I'll attach preprocessed versions hoping for a
quick resolution.


-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-18  9:28 ` hp at gcc dot gnu dot org
@ 2005-05-18  9:34 ` hp at gcc dot gnu dot org
  2005-05-18 12:03 ` giovannibajo at libero dot it
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-05-18  9:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-05-18 09:34 -------
Created an attachment (id=8919)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8919&action=view)
Preprocessed code

Options to cc1 from -v: -fpreprocessed hash.i -melf -ffunction-sections
-fdata-sections -quiet -dumpbase hash.c -march=v10 -mbest-lib-options
-march=v10 -mbest-lib-options -auxbase hash -g -O2 -O2 -O2 -version
-fno-builtin -o hash.s

Shorter: -march=v10 -O2 -o hash.s -fpreprocessed hash.i

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-18  9:34 ` hp at gcc dot gnu dot org
@ 2005-05-18 12:03 ` giovannibajo at libero dot it
  2005-05-18 12:11 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-18 12:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-05-18 12:02 -------
(In reply to comment #3)

> In response to comment #2, this is a combined tree, so the
> sources are trivially available for all and you shouldn't need 
> to be handed preprocessed code separately.  

I am sorry but this is what our rules say. There is no exception for free code 
bases where the bugmaster/bugfixer could potentially download and build the 
package himself. Whoever reported the bug can surely build the preprocessed 
source much faster than who happens to see the report. I believe this is a 
sound rule.

> Having said that, I'll attach preprocessed versions hoping for a
> quick resolution.

Thanks.

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-05-18 12:03 ` giovannibajo at libero dot it
@ 2005-05-18 12:11 ` pinskia at gcc dot gnu dot org
  2005-05-18 12:34 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 12:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 12:11 -------
Hmm, the SSA_NAME is in the free list for some reason.  

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-05-18 12:11 ` pinskia at gcc dot gnu dot org
@ 2005-05-18 12:34 ` pinskia at gcc dot gnu dot org
  2005-05-18 12:36 ` [Bug tree-optimization/21638] [4.1 regression] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 12:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 12:34 -------
Confirmed, reduced testcase:
typedef struct hashhdr {
 int bitmaps[32];
} HASHHDR;

static void
swap_header_copy(HASHHDR *srcp, HASHHDR *destp)
{
  int i;
  for (i = 0; i < 32; i++)
    ((char *)&(destp->bitmaps[i]))[0] = ((char *)&(srcp->bitmaps[i]))[1];
}

int
flush_meta(HASHHDR *whdrp1)
{
 HASHHDR *whdrp;
 HASHHDR whdr;
 whdrp = &whdr;
 swap_header_copy(whdrp1, whdrp);
 return (0);
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-18 12:34:06
               date|                            |


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-05-18 12:34 ` pinskia at gcc dot gnu dot org
@ 2005-05-18 12:36 ` pinskia at gcc dot gnu dot org
  2005-05-18 16:01 ` hp at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 12:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 12:36 -------
This is independent of target/host.  My testcase gives a different ICE:
pr21638.c:15: error: Definition in block 1 does not dominate use in block 0
for SSA_NAME: i.0_10 in statement:
D.1281_1 = &whdr.bitmaps[i.0_10];
pr21638.c:15: internal compiler error: verify_ssa failed.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|i686-pc-linux-gnu (FC2)     |
 GCC target triplet|cris-elf                    |
           Keywords|build                       |
            Summary|[4.1 regression] cris-elf   |[4.1 regression] dce
                   |broken, dce                 |is_gimple_reg_type
                   |is_gimple_reg_type          |(type=0x0) building newlib
                   |(type=0x0) building newlib  |


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-05-18 12:36 ` [Bug tree-optimization/21638] [4.1 regression] " pinskia at gcc dot gnu dot org
@ 2005-05-18 16:01 ` hp at gcc dot gnu dot org
  2005-05-18 18:10 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-05-18 16:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-05-18 16:01 -------
In reply to comment #3:
No, I don't think your reading of what rules you refer to is "sane",
but then perhaps you're not used to building a unified tree for cross
toolchains, re: simtest-howto.html.  If you'd done that with any regularity,
then you'd have all the bits and would not see newlib as "free code bases to
download yourself".  I stand by this; I think it can be expected that people
test with cross toolchains, for better test coverage than just their "native"
machines.

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-05-18 16:01 ` hp at gcc dot gnu dot org
@ 2005-05-18 18:10 ` pinskia at gcc dot gnu dot org
  2005-05-18 18:14 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 18:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 18:09 -------
(In reply to comment #9)
> In reply to comment #3:
Usually I just say "please attach it because I am too lazy to build an unified tree" instead of saying this 
goes against our rules.  Anyways I am trying to figure out a way to fix this, the problem is that forward 
prograte is making an ADDR_EXPR still invariant when it is obviously not.

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-05-18 18:10 ` pinskia at gcc dot gnu dot org
@ 2005-05-18 18:14 ` pinskia at gcc dot gnu dot org
  2005-05-18 18:18 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 18:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 18:13 -------
Mine, I have a fix.

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


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-05-18 18:14 ` pinskia at gcc dot gnu dot org
@ 2005-05-18 18:18 ` pinskia at gcc dot gnu dot org
  2005-05-18 22:03 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 18:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 18:18 -------
*** Bug 21648 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jconner at apple dot com


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-05-18 18:18 ` pinskia at gcc dot gnu dot org
@ 2005-05-18 22:03 ` pinskia at gcc dot gnu dot org
  2005-05-19  3:42 ` hp at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-18 22:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-18 22:02 -------
Index: tree-ssa-forwprop.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-forwprop.c,v
retrieving revision 2.17
diff -u -p -r2.17 tree-ssa-forwprop.c
--- tree-ssa-forwprop.c	18 May 2005 16:49:49 -0000	2.17
+++ tree-ssa-forwprop.c	18 May 2005 22:02:21 -0000
@@ -495,6 +495,7 @@ forward_propagate_addr_into_variable_arr
   /* Replace the pointer addition with array indexing.  */
   TREE_OPERAND (use_stmt, 1) = unshare_expr (TREE_OPERAND (stmt, 1));
   TREE_OPERAND (TREE_OPERAND (TREE_OPERAND (use_stmt, 1), 0), 1) = index;
+  recompute_tree_invarant_for_addr_expr (TREE_OPERAND (use_stmt, 1));
 
   /* That should have created gimple, so there is no need to
      record information to undo the propagation.  */
@@ -623,6 +624,8 @@ forward_propagate_addr_expr (tree stmt)
 	{
 	  mark_new_vars_to_rename (use_stmt);
 	  update_stmt (use_stmt);
+	  if (TREE_CODE (rhs) == ADDR_EXPR)
+	    recompute_tree_invarant_for_addr_expr (rhs);
 	  return true;
 	}
       else


-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] dce is_gimple_reg_type (type=0x0) building newlib
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2005-05-18 22:03 ` pinskia at gcc dot gnu dot org
@ 2005-05-19  3:42 ` hp at gcc dot gnu dot org
  2005-05-19 10:10 ` [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed giovannibajo at libero dot it
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-05-19  3:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-05-19 03:42 -------
The patch in comment #13 works; build completes for cris-elf and testsuite
results seem sane (same "new failures" as cris-axis-linux-gnu before this
patch).  Also tested on mmix-knuth-mmixware, no regressions (no changes at all).

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2005-05-19  3:42 ` hp at gcc dot gnu dot org
@ 2005-05-19 10:10 ` giovannibajo at libero dot it
  2005-05-19 14:07 ` hp at bitrange dot com
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-19 10:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-05-19 10:10 -------
HP: people are expected to provide preprocessed source code even for bootstrap 
failures, let alone unified source tree builds for fancy platforms. This very 
bug shows how providing a preprocessed source made a quick fix possible.

So what are you exactly complaining for? If you want a bug fixed, be helpful 
like everybody does. The fact that you are a maintainer does not buy you to 
shortcut rules and expect people to do the work in your place.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1 regression] dce        |[4.1 regression] ADDR_EXPR
                   |is_gimple_reg_type          |invariancy not recomputed
                   |(type=0x0) building newlib  |


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


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

* [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2005-05-19 10:10 ` [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed giovannibajo at libero dot it
@ 2005-05-19 14:07 ` hp at bitrange dot com
  2005-05-20  9:54 ` giovannibajo at libero dot it
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: hp at bitrange dot com @ 2005-05-19 14:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at bitrange dot com  2005-05-19 14:07 -------
Subject: Re:  [4.1 regression] ADDR_EXPR invariancy
 not recomputed

On Thu, 19 May 2005, giovannibajo at libero dot it wrote:
> ------- Additional Comments From giovannibajo at libero dot it  2005-05-19 10:10 -------
> HP: people are expected to provide preprocessed source code even for bootstrap
> failures, let alone unified source tree builds for fancy platforms. This very
> bug shows how providing a preprocessed source made a quick fix possible.

Certainly, but it would have been even quicker if people were
already having simulator toolchains at hand, for testing their
patches or to verify bugs.  Thus I somewhat thought all
"bugmasters" would be familiar enough with them; hopefully using
them, but at least not one accusing me that I "shortcut rules"
when not immediately providing preprocessed source for a target
library there.

Newlib *is* special; it's part of the toolchain and builds
naturally together with simulator, binutils and gcc in one fell
swoop.  Much like one of the target libraries provided with gcc.
Would you ask people for preprocessed source for, say, libgcc?
Hm, maybe you would, by your indication of "bootstrap failures".

> So what are you exactly complaining for?

What complaint?  I'm replying to *your* complaint, and attempt
to lecture me on your interpretation of some "rule" you read,
presumably that we ask people for preprocessed source when
reporting bugs.

> If you want a bug fixed, be helpful
> like everybody does.

Eh, I think I was/did. :-)

> The fact that you are a maintainer does not buy you to
> shortcut rules and expect people to do the work in your place.

What?  Where did you get *that* from?  I resent that accusation!
I certainly don't expect bugs to be fixed just because I report
them in bugzilla.  I also don't expect a bugmaster to start an
inproductive argument, but that might be just because I'm a
maintainer. ;-)

I never expect people to fix a bug exposed by the targets I
maintain unless they're the one that made the bug or to some
extent when they write code that expose a bug.  So many thanks
to pinskia!  Much unexpected, very much appreciated.

Worth the enormous amount of work it takes to upload the
preprocessed sources. ;-)

brgds, H-P


-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2005-05-19 14:07 ` hp at bitrange dot com
@ 2005-05-20  9:54 ` giovannibajo at libero dot it
  2005-05-24 16:09 ` pinskia at gcc dot gnu dot org
  2005-06-05  7:56 ` pinskia at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-20  9:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-05-20 09:54 -------
A patch was posted by Richard Sandiford:
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02029.html

-- 


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


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

* [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2005-05-20  9:54 ` giovannibajo at libero dot it
@ 2005-05-24 16:09 ` pinskia at gcc dot gnu dot org
  2005-06-05  7:56 ` pinskia at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-24 16:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-24 15:57 -------
Fixed.

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


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


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

* [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed
  2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
                   ` (17 preceding siblings ...)
  2005-05-24 16:09 ` pinskia at gcc dot gnu dot org
@ 2005-06-05  7:56 ` pinskia at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05  7:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-05 07:56 -------
*** Bug 21780 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mfletcher at serck-controls
                   |                            |dot co dot uk


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


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

end of thread, other threads:[~2005-06-05  7:56 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-17 23:35 [Bug tree-optimization/21638] New: [4.1 regression] cris-elf broken, dce is_gimple_reg_type (type=0x0) building newlib hp at gcc dot gnu dot org
2005-05-18  6:12 ` [Bug tree-optimization/21638] " pinskia at gcc dot gnu dot org
2005-05-18  9:09 ` giovannibajo at libero dot it
2005-05-18  9:28 ` hp at gcc dot gnu dot org
2005-05-18  9:34 ` hp at gcc dot gnu dot org
2005-05-18 12:03 ` giovannibajo at libero dot it
2005-05-18 12:11 ` pinskia at gcc dot gnu dot org
2005-05-18 12:34 ` pinskia at gcc dot gnu dot org
2005-05-18 12:36 ` [Bug tree-optimization/21638] [4.1 regression] " pinskia at gcc dot gnu dot org
2005-05-18 16:01 ` hp at gcc dot gnu dot org
2005-05-18 18:10 ` pinskia at gcc dot gnu dot org
2005-05-18 18:14 ` pinskia at gcc dot gnu dot org
2005-05-18 18:18 ` pinskia at gcc dot gnu dot org
2005-05-18 22:03 ` pinskia at gcc dot gnu dot org
2005-05-19  3:42 ` hp at gcc dot gnu dot org
2005-05-19 10:10 ` [Bug tree-optimization/21638] [4.1 regression] ADDR_EXPR invariancy not recomputed giovannibajo at libero dot it
2005-05-19 14:07 ` hp at bitrange dot com
2005-05-20  9:54 ` giovannibajo at libero dot it
2005-05-24 16:09 ` pinskia at gcc dot gnu dot org
2005-06-05  7:56 ` pinskia 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).