public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/32988]  New: [4.3.0 Regression] ICE  in build2_stat, at tree.c:3081
@ 2007-08-04 16:07 michelin60 at gmail dot com
  2007-08-04 16:09 ` [Bug c/32988] " michelin60 at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:07 UTC (permalink / raw)
  To: gcc-bugs

gcc-4.3.0  Failing

gcc: warning: -pipe ignored because -save-temps specified
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.3.0/configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --host=powerpc-unknown-linux-gnu
--build=powerpc-unknown-linux-gnu --enable-__cxa_atexit --enable-threads=posix
--enable-shared --enable-clocale=gnu --enable-bootstrap
--enable-languages=c,c++,fortran --disable-altivec --disable-libssp
--disable-decimal-float --disable-libmudflap --disable-nls --disable-werror
--disable-multilib --with-ibmlongdouble --with-cpu=G4 --enable-clocale=gnu
--with-system-zlib
Thread model: posix
gcc version 4.3.0 20070804 (experimental)
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.3.0/cc1 -E -quiet -nostdinc -v
-Iinclude -Iarch/powerpc -Iarch/powerpc/include -Iarch/powerpc -D__unix__
-D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux
-Asystem=unix -Asystem=posix -D__KERNEL__ -DKBUILD_STR(s)=#s
-DKBUILD_BASENAME=KBUILD_STR(page_alloc)
-DKBUILD_MODNAME=KBUILD_STR(page_alloc) -isystem
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include -include
include/linux/autoconf.h -MD mm/.page_alloc.o.d mm/page_alloc.c -m32
-msoft-float -mmultiple -mno-altivec -mno-string -mcpu=powerpc -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-aliasing
-fno-common -ffixed-r2 -funit-at-a-time -fomit-frame-pointer
-fno-stack-protector -O2 -fpch-preprocess -o page_alloc.i
ignoring duplicate directory "arch/powerpc"
#include "..." search starts here:
#include <...> search starts here:
 include
 arch/powerpc
 arch/powerpc/include
 /usr/include/libffi
 /usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include
End of search list.
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.3.0/cc1 -fpreprocessed
page_alloc.i -quiet -dumpbase page_alloc.c -m32 -msoft-float -mmultiple
-mno-altivec -mno-string -mcpu=powerpc -auxbase-strip mm/page_alloc.o -O2 -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wdeclaration-after-statement
-Wno-pointer-sign -version -fno-strict-aliasing -fno-common -ffixed-r2
-funit-at-a-time -fomit-frame-pointer -fno-stack-protector -o page_alloc.s
GNU C version 4.3.0 20070804 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 4.3.0 20070804 (experimental), GMP version
4.2.1, MPFR version 2.2.1-p5.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 4442e4b24a55c66f044ee5a4a200c543
mm/page_alloc.c: In function 'free_area_init_nodes':
mm/page_alloc.c:3387: internal compiler error: in build2_stat, at tree.c:3081
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

gcc-4.2.2  OK

gcc: warning: -pipe ignored because -save-temps specified
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.2.2/configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --host=powerpc-unknown-linux-gnu
--build=powerpc-unknown-linux-gnu --enable-__cxa_atexit --enable-threads=posix
--enable-altivec --enable-shared --enable-ffi --enable-clocale=gnu
--enable-bootstrap --enable-libgcc-math --enable-languages=c,c++
--disable-libunwind-exceptions --disable-nls --disable-werror
--disable-multilib --with-ibmlongdouble --with-cpu=7450 --enable-clocale=gnu
--with-system-zlib
Thread model: posix
gcc version 4.2.2 20070731 (prerelease)
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.2.2/cc1 -E -quiet -nostdinc -v
-Iinclude -Iarch/powerpc -Iarch/powerpc/include -Iarch/powerpc -D__unix__
-D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux
-Asystem=unix -Asystem=posix -D__KERNEL__ -DKBUILD_STR(s)=#s
-DKBUILD_BASENAME=KBUILD_STR(page_alloc)
-DKBUILD_MODNAME=KBUILD_STR(page_alloc) -isystem
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include -include
include/linux/autoconf.h -MD mm/.page_alloc.o.d mm/page_alloc.c -m32
-msoft-float -mmultiple -mno-altivec -mno-string -mcpu=powerpc -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-aliasing
-fno-common -ffixed-r2 -funit-at-a-time -fomit-frame-pointer
-fno-stack-protector -O2 -fpch-preprocess -o page_alloc.i
ignoring duplicate directory "arch/powerpc"
#include "..." search starts here:
#include <...> search starts here:
 include
 arch/powerpc
 arch/powerpc/include
 /usr/include/libffi
 /usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include
End of search list.
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.2.2/cc1 -fpreprocessed
page_alloc.i -quiet -dumpbase page_alloc.c -m32 -msoft-float -mmultiple
-mno-altivec -mno-string -mcpu=powerpc -auxbase-strip mm/page_alloc.o -O2 -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wdeclaration-after-statement
-Wno-pointer-sign -version -fno-strict-aliasing -fno-common -ffixed-r2
-funit-at-a-time -fomit-frame-pointer -fno-stack-protector -o page_alloc.s
GNU C version 4.2.2 20070731 (prerelease) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 4.2.2 20070731 (prerelease).
GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=96556
Compiler executable checksum: 3dcdab03fd037d389f4b01296a9801b5

/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.2/../../../../powerpc-unknown-linux-gnu/bin/as
-mppc -many -V -Qy -maltivec -o mm/page_alloc.o page_alloc.s
GNU assembler version 2.17.50.0.16 (powerpc-unknown-linux-gnu) using BFD
version (Linux/GNU Binutils) 2.17.50.0.16.20070511


-- 
           Summary: [4.3.0 Regression] ICE  in build2_stat, at tree.c:3081
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michelin60 at gmail dot com
 GCC build triplet: rs600
  GCC host triplet: rs600
GCC target triplet: rs600


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


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

* [Bug c/32988] [4.3.0 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
@ 2007-08-04 16:09 ` michelin60 at gmail dot com
  2007-08-04 16:10 ` michelin60 at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from michelin60 at gmail dot com  2007-08-04 16:09 -------
Created an attachment (id=14022)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14022&action=view)
failing *.i


-- 


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


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

* [Bug c/32988] [4.3.0 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
  2007-08-04 16:09 ` [Bug c/32988] " michelin60 at gmail dot com
@ 2007-08-04 16:10 ` michelin60 at gmail dot com
  2007-08-04 16:11 ` michelin60 at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from michelin60 at gmail dot com  2007-08-04 16:10 -------
Created an attachment (id=14023)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14023&action=view)
OK  *.I


-- 


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


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

* [Bug c/32988] [4.3.0 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
  2007-08-04 16:09 ` [Bug c/32988] " michelin60 at gmail dot com
  2007-08-04 16:10 ` michelin60 at gmail dot com
@ 2007-08-04 16:11 ` michelin60 at gmail dot com
  2007-08-05 19:38 ` [Bug middle-end/32988] [4.3 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from michelin60 at gmail dot com  2007-08-04 16:11 -------
Created an attachment (id=14024)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14024&action=view)
Failing *.s


-- 


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


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

* [Bug middle-end/32988] [4.3 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
                   ` (2 preceding siblings ...)
  2007-08-04 16:11 ` michelin60 at gmail dot com
@ 2007-08-05 19:38 ` pinskia at gcc dot gnu dot org
  2007-08-05 20:57 ` 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-08-05 19:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-08-05 19:38 -------
This is most likely my fault.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
          Component|c                           |middle-end
           Keywords|                            |ice-on-valid-code
            Summary|[4.3.0 Regression] ICE  in  |[4.3 Regression] ICE  in
                   |build2_stat, at tree.c:3081 |build2_stat, at tree.c:3081
   Target Milestone|---                         |4.3.0


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


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

* [Bug middle-end/32988] [4.3 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
                   ` (3 preceding siblings ...)
  2007-08-05 19:38 ` [Bug middle-end/32988] [4.3 " pinskia at gcc dot gnu dot org
@ 2007-08-05 20:57 ` pinskia at gcc dot gnu dot org
  2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-05 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-08-05 20:57 -------
Reduced testcase:
enum zone_type {
  ZONE_DMA,
  ZONE_NORMAL,
  ZONE_MOVABLE,
  MAX_NR_ZONES
};
static unsigned long arch_zone_lowest_possible_pfn[MAX_NR_ZONES];
static unsigned long arch_zone_highest_possible_pfn[MAX_NR_ZONES];
void free_area_init_nodes(unsigned long *max_zone_pfn)
{
  enum zone_type i;
  for (i = 1; i < MAX_NR_ZONES; i++)
  {
    if (i == ZONE_MOVABLE)
      continue;
    unsigned long _x = (max_zone_pfn[i]);
    unsigned long _y = (arch_zone_lowest_possible_pfn[i]);
    arch_zone_highest_possible_pfn[i] = _x > _y ? _x : _y;
  }
}


---------- CUT --------
The problem is just in the checking and nothing else.  I am fixing this right
now and it is not just a PowerPC problem, the ICE is also on i386-apple-darwin
with the reduced testcase.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
  GCC build triplet|rs600                       |
   GCC host triplet|rs600                       |
 GCC target triplet|rs600                       |
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-05 20:57:24
               date|                            |


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


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

* [Bug middle-end/32988] [4.3 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
                   ` (4 preceding siblings ...)
  2007-08-05 20:57 ` pinskia at gcc dot gnu dot org
@ 2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
  2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
  2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-05 21:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-08-05 21:00 -------
Patch which I am testing:
Index: tree.c
===================================================================
--- tree.c      (revision 127225)
+++ tree.c      (working copy)
@@ -3077,7 +3077,7 @@ build2_stat (enum tree_code code, tree t

   if (code == POINTER_PLUS_EXPR && arg0 && arg1 && tt)
     gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0))
-               && TREE_CODE (TREE_TYPE (arg1)) == INTEGER_TYPE
+               && INTEGRAL_TYPE_P (TREE_TYPE (arg1))
                && useless_type_conversion_p (sizetype, TREE_TYPE (arg1)));

   t = make_node_stat (code PASS_MEM_STAT);


-- 


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


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

* [Bug middle-end/32988] [4.3 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
                   ` (6 preceding siblings ...)
  2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
@ 2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06  3:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2007-08-06 03:24 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/32988] [4.3 Regression] ICE  in build2_stat, at tree.c:3081
  2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
                   ` (5 preceding siblings ...)
  2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
@ 2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
  2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06  3:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-08-06 03:24 -------
Subject: Bug 32988

Author: pinskia
Date: Mon Aug  6 03:24:19 2007
New Revision: 127237

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127237
Log:
2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/32988
        * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
        for INTEGRAL_TYPE_P.

2007-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/32988
        * gcc.c-torture/compile/pr32988.c: New test.


Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr32988.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

end of thread, other threads:[~2007-08-06  3:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
2007-08-04 16:09 ` [Bug c/32988] " michelin60 at gmail dot com
2007-08-04 16:10 ` michelin60 at gmail dot com
2007-08-04 16:11 ` michelin60 at gmail dot com
2007-08-05 19:38 ` [Bug middle-end/32988] [4.3 " pinskia at gcc dot gnu dot org
2007-08-05 20:57 ` pinskia at gcc dot gnu dot org
2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
2007-08-06  3:24 ` pinskia at gcc dot gnu dot org
2007-08-06  3:24 ` 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).