public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver
@ 2003-07-04  3:40 trisk at quasarnet dot org
  2003-07-04  3:43 ` [Bug c/11428] " trisk at quasarnet dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: trisk at quasarnet dot org @ 2003-07-04  3:40 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: gcc aborts in compiling Linux 2.5.74 reiserfs driver
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: trisk at quasarnet dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

Hi, 
 
I upgraded gcc from CVS earlier today (previously using a 3.2.1 snapshot), and the new build aborts    
consistently when compiling the ReiserFS block allocation code... around the assignment of a 
function's return value to an int in the source file. 
  
The revelant call to abort() is:  
gcc/expr.c:3182-3183:     
  if (mode == BLKmode || (GET_MODE (y) != mode && GET_MODE (y) != VOIDmode))     
    abort ();      
  
The command line used and output were:  
[trisk@kainga]% gcc -v -save-temps -Wp,-MD,fs/reiserfs/.bitmap.o.d -D__KERNEL__ -Iinclude                
-Wall -Wstrict-prototypes -Wno-trigraphs -finline-functions --param max-inline-insns-auto=0                
-fno-strict-aliasing -fno-common -O2 -mcpu=pentium4 -march=pentium4 -mmmx                
-fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 -fstrength-reduce                
-pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default                
-fomit-frame-pointer -nostdinc -iwithprefix include    -DKBUILD_BASENAME=bitmap                
-DKBUILD_MODNAME=reiserfs -c -o fs/reiserfs/.tmp_bitmap.o fs/reiserfs/bitmap.c                
gcc: warning: -pipe ignored because -save-temps specified                
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs                
Configured with: ../configure --prefix=/usr --enable-version-specific-runtime-libs                
--with-gxx-include-dir=/usr/include/g++-v32 --enable-languages=c,c++,ada,f77,objc,java                
--enable-threads=posix --enable-long-long --enable-haifa --enable-__cxa_atexit                
--disable-checking --enable-nls --with-system-zlib : (reconfigured)  : (reconfigured) ../configure                
--prefix=/usr --enable-version-specific-runtime-libs                
--with-gxx-include-dir=/usr/include/g++-v32 --enable-languages=c,c++,ada,f77,objc,java                
--enable-threads=posix --enable-long-long --enable-haifa --enable-__cxa_atexit                
--disable-checking --enable-nls --with-system-zlib                
Thread model: posix                
gcc version 3.4 20030703 (experimental)                
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.                
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/cc1 -E -quiet -nostdinc -v -Iinclude                
-Iinclude/asm-i386/mach-default -D__KERNEL__ -DKBUILD_BASENAME=bitmap                
-DKBUILD_MODNAME=reiserfs -iwithprefix include -MD fs/reiserfs/.bitmap.o.d                
fs/reiserfs/bitmap.c -mtune=pentium4 -march=pentium4 -mmmx                
-mpreferred-stack-boundary=2 -march=pentium4 -Wall -Wstrict-prototypes -Wno-trigraphs                
-finline-functions -fno-strict-aliasing -fno-common -fomit-frame-pointer -falign-functions=4                
-falign-jumps=4 -falign-loops=4 -fstrength-reduce -fomit-frame-pointer -O2 -o bitmap.i                
#include "..." search starts here:                
#include <...> search starts here:                
 include                
 include/asm-i386/mach-default                
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/include                
End of search list.                
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4/cc1 -fpreprocessed bitmap.i -quiet -dumpbase bitmap.c                
-march=pentium4 -mmmx -mpreferred-stack-boundary=2 -march=pentium4 -auxbase-strip                
fs/reiserfs/.tmp_bitmap.o -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -version                
-finline-functions -fno-strict-aliasing -fno-common -fomit-frame-pointer -falign-functions=4                
-falign-jumps=4 -falign-loops=4 -fstrength-reduce -fomit-frame-pointer --param                
max-inline-insns-auto=0 -o bitmap.s                
GNU C version 3.4 20030703 (experimental) (i686-pc-linux-gnu)                
        compiled by GNU C version 3.2.1 20021103 (prerelease).                
GGC heuristics: --param ggc-min-expand=32 --param ggc-min-heapsize=4096                
fs/reiserfs/bitmap.c: In function `reiserfs_allocate_blocknrs':                
fs/reiserfs/bitmap.c:738: internal compiler error: in emit_move_insn, at expr.c:3183                
Please submit a full bug report,                
with preprocessed source if appropriate.                
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c/11428] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
@ 2003-07-04  3:43 ` trisk at quasarnet dot org
  2003-07-04  5:56 ` trisk at quasarnet dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: trisk at quasarnet dot org @ 2003-07-04  3:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From trisk at quasarnet dot org  2003-07-04 03:43 -------
Created an attachment (id=4345)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4345&action=view)
Preprocessed version of the source file in question.


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

* [Bug c/11428] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
  2003-07-04  3:43 ` [Bug c/11428] " trisk at quasarnet dot org
@ 2003-07-04  5:56 ` trisk at quasarnet dot org
  2003-07-04 17:46 ` kazu at cs dot umass dot edu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: trisk at quasarnet dot org @ 2003-07-04  5:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From trisk at quasarnet dot org  2003-07-04 05:56 -------
I worked around the problem by making the function (of type static int) inline.


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

* [Bug c/11428] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
  2003-07-04  3:43 ` [Bug c/11428] " trisk at quasarnet dot org
  2003-07-04  5:56 ` trisk at quasarnet dot org
@ 2003-07-04 17:46 ` kazu at cs dot umass dot edu
  2003-07-04 20:11 ` kazu at cs dot umass dot edu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kazu at cs dot umass dot edu @ 2003-07-04 17:46 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From kazu at cs dot umass dot edu  2003-07-04 17:46 -------
Here is a minimized testcase that fails with a recent version of mainline.

struct s {
  int m : 1;
};

int
foo (struct s *p)
{
  return !p->m;
}


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

* [Bug c/11428] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
                   ` (2 preceding siblings ...)
  2003-07-04 17:46 ` kazu at cs dot umass dot edu
@ 2003-07-04 20:11 ` kazu at cs dot umass dot edu
  2003-07-04 20:34 ` bangerth at dealii dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: kazu at cs dot umass dot edu @ 2003-07-04 20:11 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


kazu at cs dot umass dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kazu at cs dot umass dot edu


------- Additional Comments From kazu at cs dot umass dot edu  2003-07-04 20:11 -------
See http://gcc.gnu.org/ml/gcc-patches/2003-07/msg00448.html


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

* [Bug c/11428] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
                   ` (3 preceding siblings ...)
  2003-07-04 20:11 ` kazu at cs dot umass dot edu
@ 2003-07-04 20:34 ` bangerth at dealii dot org
  2003-07-04 22:56 ` [Bug c/11428] [3.4 regression] " cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2003-07-04 20:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-04 20:34:13
               date|                            |


------- Additional Comments From bangerth at dealii dot org  2003-07-04 20:34 -------
Confirmed indeed.


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

* [Bug c/11428] [3.4 regression] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
                   ` (4 preceding siblings ...)
  2003-07-04 20:34 ` bangerth at dealii dot org
@ 2003-07-04 22:56 ` cvs-commit at gcc dot gnu dot org
  2003-07-05  1:41 ` pinskia at physics dot uc dot edu
  2003-07-05  2:32 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-04 22:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-07-04 22:56 -------
Subject: Bug 11428

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kazu@gcc.gnu.org	2003-07-04 22:56:24

Modified files:
	gcc/testsuite  : ChangeLog 

Log message:
	PR c/11428
	* gcc.c-torture/compile/20030704-1.c: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2842&r2=1.2843


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

* [Bug c/11428] [3.4 regression] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
                   ` (5 preceding siblings ...)
  2003-07-04 22:56 ` [Bug c/11428] [3.4 regression] " cvs-commit at gcc dot gnu dot org
@ 2003-07-05  1:41 ` pinskia at physics dot uc dot edu
  2003-07-05  2:32 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-05  1:41 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

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


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-05 01:41 -------
Fixed in the mainline.


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

* [Bug c/11428] [3.4 regression] gcc aborts in compiling Linux 2.5.74 reiserfs driver
  2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
                   ` (6 preceding siblings ...)
  2003-07-05  1:41 ` pinskia at physics dot uc dot edu
@ 2003-07-05  2:32 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-05  2:32 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-07-05 02:32 -------
Subject: Bug 11428

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kazu@gcc.gnu.org	2003-07-05 02:32:55

Modified files:
	gcc            : ChangeLog 

Log message:
	PR c/11428
	* expr.c (do_store_flag): Pass in the correct result type
	when calling fold_single_bit_test.
	* fold-const.c (fold_single_bit_test): Use result_type for the
	result when folding a sign bit test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.339&r2=2.340


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

end of thread, other threads:[~2003-07-05  2:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04  3:40 [Bug c/11428] New: gcc aborts in compiling Linux 2.5.74 reiserfs driver trisk at quasarnet dot org
2003-07-04  3:43 ` [Bug c/11428] " trisk at quasarnet dot org
2003-07-04  5:56 ` trisk at quasarnet dot org
2003-07-04 17:46 ` kazu at cs dot umass dot edu
2003-07-04 20:11 ` kazu at cs dot umass dot edu
2003-07-04 20:34 ` bangerth at dealii dot org
2003-07-04 22:56 ` [Bug c/11428] [3.4 regression] " cvs-commit at gcc dot gnu dot org
2003-07-05  1:41 ` pinskia at physics dot uc dot edu
2003-07-05  2:32 ` 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).