public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/32764]  New: [4.3 regression] : Failed to bootstrap on Linux/ia64
@ 2007-07-14  3:16 hjl at lucon dot org
  2007-07-14  3:19 ` [Bug bootstrap/32764] " hjl at lucon dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hjl at lucon dot org @ 2007-07-14  3:16 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2248 bytes --]

This checkin:

http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00486.html

causes

/net/gnu-13/export/gnu/src/gcc/gcc/libgcc/../gcc/libgcc2.c: In function
â__umodti3â:
/net/gnu-13/export/gnu/src/gcc/gcc/libgcc/../gcc/libgcc2.c:1137: 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[5]: *** [_umoddi3.o] Error 1

var-tracking.c has

static rtx
find_src_set_src (dataflow_set *set, rtx loc, rtx insn)
{
  tree decl = NULL_TREE;   /* The variable being copied around.          */
  rtx src = NULL_RTX;      /* The location "decl" is being copied from.  */
  rtx set_src = NULL_RTX;  /* The value for "decl" stored in "src".      */
  void **slot;
  variable var;
  location_chain nextp;
  int i;
  bool found;

  if (GET_CODE (PATTERN (insn)) == SET)
    src = SET_SRC (PATTERN (insn));
  else if (GET_CODE (PATTERN (insn)) == PARALLEL
           || GET_CODE (PATTERN (insn)) == SEQUENCE)
    {
      for (i = XVECLEN (PATTERN (insn), 0) - 1; i >= 0; i--)
        if (GET_CODE (XVECEXP (PATTERN (insn), 0, i)) == SET
            && SET_DEST (XVECEXP (PATTERN (insn), 0, i)) == loc)
          src = SET_SRC (XVECEXP (PATTERN (insn), 0, i));
    }

  if (REG_P (src))
    decl = var_debug_decl (REG_EXPR (src));
  else if (MEM_P (src))
    decl = var_debug_decl (MEM_EXPR (src));

That can't be right since src can be NULL and "if (REG_P (src))" will
segfault. insn is

(gdb) call debug_rtx (insn)
(insn 535 895 533 50
/net/gnu-13/export/gnu/src/gcc/gcc/libgcc/../gcc/libgcc2.c:1056 (cond_exec (eq
(reg:BI 262 p6 [704])
            (const_int 0 [0x0]))
        (set (reg/v:DI 8 r8 [orig:386 m0.152 ] [386])
            (reg/v:DI 15 r15 [orig:455 m0 ] [455]))) 783
{sync_lock_releasedi+5} (nil))


-- 
           Summary: [4.3 regression] : Failed to bootstrap on Linux/ia64
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org
GCC target triplet: ia64-unknown-linux-gnu


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


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

* [Bug bootstrap/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
@ 2007-07-14  3:19 ` hjl at lucon dot org
  2007-07-14  3:26 ` hjl at lucon dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at lucon dot org @ 2007-07-14  3:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl at lucon dot org  2007-07-14 03:19 -------
I am testing

--- gcc/var-tracking.c.bad      2007-07-13 19:38:08.000000000 -0700
+++ gcc/var-tracking.c  2007-07-13 20:18:19.000000000 -0700
@@ -1862,6 +1862,9 @@ find_src_set_src (dataflow_set *set, rtx
          src = SET_SRC (XVECEXP (PATTERN (insn), 0, i));
     }

+  if (!src)
+    return set_src;
+
   if (REG_P (src))
     decl = var_debug_decl (REG_EXPR (src));
   else if (MEM_P (src))


-- 


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


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

* [Bug bootstrap/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
  2007-07-14  3:19 ` [Bug bootstrap/32764] " hjl at lucon dot org
@ 2007-07-14  3:26 ` hjl at lucon dot org
  2007-07-14  4:57 ` hjl at lucon dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at lucon dot org @ 2007-07-14  3:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl at lucon dot org  2007-07-14 03:25 -------
This one

--- gcc/var-tracking.c.bad      2007-07-13 19:38:08.000000000 -0700
+++ gcc/var-tracking.c  2007-07-13 20:24:27.000000000 -0700
@@ -1824,6 +1824,9 @@ find_src_status (dataflow_set *in, rtx l
          src = SET_SRC (XVECEXP (PATTERN (insn), 0, i));
     }

+  if (!src)
+    return status;
+
   if (REG_P (src))
     decl = var_debug_decl (REG_EXPR (src));
   else if (MEM_P (src))
@@ -1862,6 +1865,9 @@ find_src_set_src (dataflow_set *set, rtx
          src = SET_SRC (XVECEXP (PATTERN (insn), 0, i));
     }

+  if (!src)
+    return set_src;
+
   if (REG_P (src))
     decl = var_debug_decl (REG_EXPR (src));
   else if (MEM_P (src))

passes the stage 1.


-- 


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


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

* [Bug bootstrap/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
  2007-07-14  3:19 ` [Bug bootstrap/32764] " hjl at lucon dot org
  2007-07-14  3:26 ` hjl at lucon dot org
@ 2007-07-14  4:57 ` hjl at lucon dot org
  2007-07-14  5:14 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at lucon dot org @ 2007-07-14  4:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl at lucon dot org  2007-07-14 04:57 -------
(In reply to comment #2)
> This one
> 
> --- gcc/var-tracking.c.bad      2007-07-13 19:38:08.000000000 -0700
> +++ gcc/var-tracking.c  2007-07-13 20:24:27.000000000 -0700
> @@ -1824,6 +1824,9 @@ find_src_status (dataflow_set *in, rtx l
>           src = SET_SRC (XVECEXP (PATTERN (insn), 0, i));
>      }
> 
> +  if (!src)
> +    return status;
> +
>    if (REG_P (src))
>      decl = var_debug_decl (REG_EXPR (src));
>    else if (MEM_P (src))
> @@ -1862,6 +1865,9 @@ find_src_set_src (dataflow_set *set, rtx
>           src = SET_SRC (XVECEXP (PATTERN (insn), 0, i));
>      }
> 
> +  if (!src)
> +    return set_src;
> +
>    if (REG_P (src))
>      decl = var_debug_decl (REG_EXPR (src));
>    else if (MEM_P (src))
> 
> passes the stage 1.
> 

It works for me on Linux/ia32, Linux/Intel64 and Linux/ia64.


-- 


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


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

* [Bug bootstrap/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2007-07-14  4:57 ` hjl at lucon dot org
@ 2007-07-14  5:14 ` pinskia at gcc dot gnu dot org
  2007-07-15 21:08 ` [Bug debug/32764] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-14  5:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug debug/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
                   ` (3 preceding siblings ...)
  2007-07-14  5:14 ` pinskia at gcc dot gnu dot org
@ 2007-07-15 21:08 ` pinskia at gcc dot gnu dot org
  2007-07-15 22:50 ` hjl at lucon dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-15 21:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-07-15 21:08 -------
PS Where is the preprocessed source?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |debug
           Keywords|                            |build, ice-on-valid-code


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


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

* [Bug debug/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
                   ` (4 preceding siblings ...)
  2007-07-15 21:08 ` [Bug debug/32764] " pinskia at gcc dot gnu dot org
@ 2007-07-15 22:50 ` hjl at lucon dot org
  2007-07-16 13:47 ` rguenth at gcc dot gnu dot org
  2007-07-25 16:52 ` sje at cup dot hp dot com
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at lucon dot org @ 2007-07-15 22:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]



------- Comment #5 from hjl at lucon dot org  2007-07-15 22:49 -------
Created an attachment (id=13916)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13916&action=view)
_moddi3 source

#  ./xgcc -B./ -O -g _moddi3.i -S
/net/gnu-13/export/gnu/src/gcc/gcc/libgcc/../gcc/libgcc2.c: In function
‘__modti3’:
/net/gnu-13/export/gnu/src/gcc/gcc/libgcc/../gcc/libgcc2.c:1125: 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.


-- 


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


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

* [Bug debug/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
                   ` (5 preceding siblings ...)
  2007-07-15 22:50 ` hjl at lucon dot org
@ 2007-07-16 13:47 ` rguenth at gcc dot gnu dot org
  2007-07-25 16:52 ` sje at cup dot hp dot com
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-07-16 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2007-07-16 13:47 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-16 13:47:24
               date|                            |


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


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

* [Bug debug/32764] [4.3 regression] : Failed to bootstrap on Linux/ia64
  2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
                   ` (6 preceding siblings ...)
  2007-07-16 13:47 ` rguenth at gcc dot gnu dot org
@ 2007-07-25 16:52 ` sje at cup dot hp dot com
  7 siblings, 0 replies; 9+ messages in thread
From: sje at cup dot hp dot com @ 2007-07-25 16:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sje at cup dot hp dot com  2007-07-25 16:52 -------
Carolyn has checked in a patch to var-tracking.c and I can bootstrap IA64 Linux
so I am going to close this out as fixed.  The patch that fixed this was:

2007-07-18  Caroline Tice  <ctice@apple.com>

        * var-tracking.c (find_src_status):  Check for  COND_EXEC insns
        and handle them correctly; check that src is not NULL before
        trying to use it.
        (find_src_set_src): Likewise.


-- 

sje at cup dot hp dot com changed:

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


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


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

end of thread, other threads:[~2007-07-25 16:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-14  3:16 [Bug bootstrap/32764] New: [4.3 regression] : Failed to bootstrap on Linux/ia64 hjl at lucon dot org
2007-07-14  3:19 ` [Bug bootstrap/32764] " hjl at lucon dot org
2007-07-14  3:26 ` hjl at lucon dot org
2007-07-14  4:57 ` hjl at lucon dot org
2007-07-14  5:14 ` pinskia at gcc dot gnu dot org
2007-07-15 21:08 ` [Bug debug/32764] " pinskia at gcc dot gnu dot org
2007-07-15 22:50 ` hjl at lucon dot org
2007-07-16 13:47 ` rguenth at gcc dot gnu dot org
2007-07-25 16:52 ` sje at cup dot hp dot com

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).