[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-30 Thread mkuvyrkov at gcc dot gnu dot org


--- Comment #11 from mkuvyrkov at gcc dot gnu dot org  2006-03-30 15:41 
---
Subject: Bug 26734

Author: mkuvyrkov
Date: Thu Mar 30 15:41:00 2006
New Revision: 112538

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112538
Log:
2006-03-30  Maxim Kuvyrkov  [EMAIL PROTECTED]

PR target/26734
* rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
* target.h (struct gcc_target.speculate_insn): Change type of the
second parameter to 'int'.
* lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
the second operand of the DEPS_LIST.
(copy_DEPS_LIST_list): Update reference to the second operand of the
DEPS_LIST.
* rtl.h (alloc_DEPS_LIST): Update signature.
* sched-int.h (ds_t): Change typedef to 'int'.
(DEP_STATUS, BITS_PER_DEP_STATUS): Update.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/lists.c
trunk/gcc/rtl.def
trunk/gcc/rtl.h
trunk/gcc/sched-int.h
trunk/gcc/target.h


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-30 Thread mkuvyrkov at gcc dot gnu dot org


--- Comment #12 from mkuvyrkov at gcc dot gnu dot org  2006-03-30 15:43 
---
The patch was reapplied:
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01721.html


-- 

mkuvyrkov at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-28 Thread mkuvyrkov at gcc dot gnu dot org


--- Comment #10 from mkuvyrkov at gcc dot gnu dot org  2006-03-28 17:42 
---
Reopen this bug as the patch, which fixes it was reverted from the mainline.


-- 

mkuvyrkov at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-28 Thread mkuvyrkov at gcc dot gnu dot org


-- 

mkuvyrkov at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |mkuvyrkov at gcc dot gnu dot
   |dot org |org
 Status|REOPENED|ASSIGNED
   Last reconfirmed|2006-03-17 23:57:18 |2006-03-28 17:43:28
   date||


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-27 Thread mkuvyrkov at gcc dot gnu dot org


--- Comment #9 from mkuvyrkov at gcc dot gnu dot org  2006-03-27 23:04 
---
The patch for this bug is:
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01589.html


-- 

mkuvyrkov at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   Severity|normal  |blocker
   GCC host triplet|ia64-hp-hpux11.23   |
 GCC target triplet||ia64-hp-hpux11.23
   Keywords||build
Summary|GCC cannot bootstrap on IA64|[4.2 Regression] GCC cannot
   |HP-UX   |bootstrap on IA64 HP-UX
   Target Milestone|--- |4.2.0


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread mkuvyrkov at gcc dot gnu dot org


--- Comment #1 from mkuvyrkov at gcc dot gnu dot org  2006-03-17 21:16 
---
(In reply to comment #0)
 The compiler builds but when it tries to build libgcc I get a bunch of ICEs.
 Here is a small test case that will not compile with -O2 on ia64-hp-hpux11.23
 with the ToT compiler:
 
 extern int c;
 long long __negti2 () { return (-c); }
 
 I believe the problem is due to the IA64 speculation changes that Maxim 
 checked
 in.

Unfortunately, I don't have access to HP-UX and the bug doesn't appear on
ia64-linux, so can you please provide some more information for the failure
like backtrace.


-- 


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



Re: [Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread Andrew Pinski


On Mar 17, 2006, at 4:16 PM, mkuvyrkov at gcc dot gnu dot org wrote:


Unfortunately, I don't have access to HP-UX and the bug doesn't appear 
on
ia64-linux, so can you please provide some more information for the 
failure

like backtrace.


A cross compile will most likely reproduce it.

-- Pinski



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread pinskia at physics dot uc dot edu


--- Comment #2 from pinskia at gcc dot gnu dot org  2006-03-17 21:19 ---
Subject: Re:  [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX


On Mar 17, 2006, at 4:16 PM, mkuvyrkov at gcc dot gnu dot org wrote:

 Unfortunately, I don't have access to HP-UX and the bug doesn't appear 
 on
 ia64-linux, so can you please provide some more information for the 
 failure
 like backtrace.

A cross compile will most likely reproduce it.

-- Pinski


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-03-17 21:20 ---
hmm, I get:
options.c:3863: error: `MASK_ILP32' undeclared here (not in a function)
or was there a fix for this?


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread sje at cup dot hp dot com


--- Comment #4 from sje at cup dot hp dot com  2006-03-17 21:25 ---
I already fixed the problem in comment 3 with an 'obvious' checkin to
config/ia64/ia64.opts.


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread sje at cup dot hp dot com


--- Comment #5 from sje at cup dot hp dot com  2006-03-17 21:47 ---
The debugger shows:


(gdb) p debug_rtx(*unused_listp)
(deps_list 34 (nil) 0 [0x0])

(gdb) p debug_rtx(prev_link)
(UnKnown Unknown)

When I print unused_insn_list I get a long RTL that I couldn't capture.

Here is a backtrace:

#0  internal_error (gmsgid=0x40f8228 in %s, at %s:%d)
at /proj/opensrc/nightly/src/trunk/gcc/diagnostic.c:586
#1  0x49c5b10:0 in fancy_abort (
file=0x41141e0 /proj/opensrc/nightly/src/trunk/gcc/lists.c, line=60,
function=0x41141d0 free_list)
at /proj/opensrc/nightly/src/trunk/gcc/diagnostic.c:642
#2  0x4effe00:0 in free_list (listp=0x401673c4, unused_listp=0x400525f0)
at /proj/opensrc/nightly/src/trunk/gcc/lists.c:57
#3  0x4f00b20:0 in free_DEPS_LIST_list (listp=0x401673c4)
at /proj/opensrc/nightly/src/trunk/gcc/lists.c:207
#4  0x56bceb0:0 in schedule_insn (insn=0x6f4b76c0)
at /proj/opensrc/nightly/src/trunk/gcc/haifa-sched.c:1173
#5  0x56c7bd0:0 in schedule_block (target_bb=0x70c8, rgn_n_insns1=7)
at /proj/opensrc/nightly/src/trunk/gcc/haifa-sched.c:2515
#6  0x581c4d0:0 in schedule_ebb (head=0x6f4b7a80, tail=0x6f4b7ae0)
at /proj/opensrc/nightly/src/trunk/gcc/sched-ebb.c:512
#7  0x581d1f0:0 in schedule_ebbs ()
at /proj/opensrc/nightly/src/trunk/gcc/sched-ebb.c:613
#8  0x53caa40:0 in ia64_reorg ()
at /proj/opensrc/nightly/src/trunk/gcc/config/ia64/ia64.c:8498
#9  0x5804e20:0 in rest_of_handle_machine_reorg ()
at /proj/opensrc/nightly/src/trunk/gcc/reorg.c:3816
#10 0x529e450:0 in execute_one_pass (pass=0x4003151c)
at /proj/opensrc/nightly/src/trunk/gcc/passes.c:860
#11 0x529ea10:0 in execute_pass_list (pass=0x4003151c)
at /proj/opensrc/nightly/src/trunk/gcc/passes.c:907
#12 0x529eab0:0 in execute_pass_list (pass=0x4003075c)
at /proj/opensrc/nightly/src/trunk/gcc/passes.c:908
#13 0x529eab0:0 in execute_pass_list (pass=0x40030728)
at /proj/opensrc/nightly/src/trunk/gcc/passes.c:908
#14 0x44a9960:0 in tree_rest_of_compilation (fndecl=0x6f4ae100)
at /proj/opensrc/nightly/src/trunk/gcc/tree-optimize.c:418
#15 0x4216580:0 in c_expand_body (fndecl=0x6f4ae100)
at /proj/opensrc/nightly/src/trunk/gcc/c-decl.c:6689
#16 0x540da00:0 in cgraph_expand_function (node=0x6f3f1480)
at /proj/opensrc/nightly/src/trunk/gcc/cgraphunit.c:1102
#17 0x540e2b0:0 in cgraph_expand_all_functions ()
at /proj/opensrc/nightly/src/trunk/gcc/cgraphunit.c:1167
#18 0x54109f0:0 in cgraph_optimize ()
at /proj/opensrc/nightly/src/trunk/gcc/cgraphunit.c:1435
#19 0x4222d80:0 in c_write_global_declarations ()
at /proj/opensrc/nightly/src/trunk/gcc/c-decl.c:7804
#20 0x51651a0:0 in compile_file ()
at /proj/opensrc/nightly/src/trunk/gcc/toplev.c:1012
#21 0x516af30:0 in do_compile ()
at /proj/opensrc/nightly/src/trunk/gcc/toplev.c:1970
#22 0x516b0e0:0 in toplev_main (argc=3, argv=0x7778)
at /proj/opensrc/nightly/src/trunk/gcc/toplev.c:2002
#23 0x43f2280:0 in main (argc=3, argv=0x7778)
at /proj/opensrc/nightly/src/trunk/gcc/main.c:35


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread sje at cup dot hp dot com


--- Comment #6 from sje at cup dot hp dot com  2006-03-17 22:34 ---
I applied the patch that Maxim created for PR 26725 but it did not seem to help
this problem.  I verified the problem happened on ia64-hp-hpux11.23 in LP64
mode as well as ILP32 mode so that makes it more surprising that it doesn't
happen on IA64 Linux.


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread pinskia at gcc dot gnu dot org


--- Comment #7 from pinskia at gcc dot gnu dot org  2006-03-17 23:39 ---
t.c: In function '__negti2':
t.c:4: internal compiler error: in add_forw_dep, at sched-deps.c:1644
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.


(deps_list 1815750704 (nil) 131064191212584960 [0x1d1a230])


-- 


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



[Bug target/26734] [4.2 Regression] GCC cannot bootstrap on IA64 HP-UX

2006-03-17 Thread pinskia at gcc dot gnu dot org


--- Comment #8 from pinskia at gcc dot gnu dot org  2006-03-17 23:57 ---
Confirmed, with a cross compiler.
here is the backtrace:
#1  0x0083e49c in add_forw_dep (to=0x1d1a230, link=0x1db9100) at
../../gcc/sched-deps.c:1644
#2  0x0083e8f4 in compute_forward_dependences (head=0x1d1a640, tail=0x1db7958)
at ../../gcc/sched-deps.c:1700
#3  0x008418d4 in schedule_ebb (head=0x1d1a640, tail=0x1db7958) at
../../gcc/sched-ebb.c:459
#4  0x00841f30 in schedule_ebbs () at ../../gcc/sched-ebb.c:613
#5  0x006afbcc in ia64_reorg () at ../../gcc/config/ia64/ia64.c:8498
#6  0x008399b0 in rest_of_handle_machine_reorg () at ../../gcc/reorg.c:3816
#7  0x006415c0 in execute_one_pass (pass=0x953dcc) at ../../gcc/passes.c:860
#8  0x006417c4 in execute_pass_list (pass=0x953dcc) at ../../gcc/passes.c:907
#9  0x006417ec in execute_pass_list (pass=0x952a80) at ../../gcc/passes.c:908
#10 0x006417ec in execute_pass_list (pass=0x952a4c) at ../../gcc/passes.c:908
#11 0x0011d924 in tree_rest_of_compilation (fndecl=0x1db4000) at
../../gcc/tree-optimize.c:418
#12 0x000289dc in c_expand_body (fndecl=0x1db4000) at ../../gcc/c-decl.c:6689
#13 0x006c8e0c in cgraph_expand_function (node=0x1db5000) at
../../gcc/cgraphunit.c:1102
#14 0x006c9180 in cgraph_expand_all_functions () at ../../gcc/cgraphunit.c:1167
#15 0x006c9fb8 in cgraph_optimize () at ../../gcc/cgraphunit.c:1435
#16 0x0002c8f8 in c_write_global_declarations () at ../../gcc/c-decl.c:7804
#17 0x005c7fbc in compile_file () at ../../gcc/toplev.c:1012
#18 0x005ca6cc in do_compile () at ../../gcc/toplev.c:1970
#19 0x005ca768 in toplev_main (argc=3, argv=0xbd28) at
../../gcc/toplev.c:2002
#20 0x000db710 in main (argc=3, argv=0xbd28) at ../../gcc/main.c:35

So this is definitely a target issue.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2006-03-17 23:57:18
   date||


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