[Bug middle-end/28734] gather stats vs PCH

2011-01-18 Thread rob1weld at aol dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28734

Rob  changed:

   What|Removed |Added

 CC||rob1weld at aol dot com

--- Comment #10 from Rob  2011-01-19 04:36:37 UTC ---
(In reply to comment #3)
> Can you attach the preprocessed testcase as this is most likely this is a bug
> still?
The source in the Testsuite Directory contains an error (misnamed file) which
when corrected will allow gcc to compile correctly. It is the "File Not Found"
error that causes the ICE and NOT an "error in the Testsuite source" itself.
If you alter the Source to correct it then the ICE goes away.


This message suggests that this Bug still occurs on the Trunk and purports a
Fix: http://readlist.com/lists/gcc.gnu.org/gcc/8/41545.html


I get this Bug on a preRelease SVN version:

# /usr/local/gcc-4_5-branch_build/gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-4_5-branch_build/gcc/xgcc
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4_5-branch/configure --enable-multiarch --enable-nls
--with-tls --enable-static --enable-shared --enable-plugin --enable-lto
--enable-linker-build-id --with-system-zlib --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-objc-gc --enable-stage1-checking=release
--enable-checking=release --enable-gather-detailed-mem-stats --enable-libssp
--enable-libmudflap --enable-libgomp --enable-decimal-float
--enable-languages=c,c++,ada
Thread model: posix
gcc version 4.5.3 20110117 (prerelease) [gcc-4_5-branch revision 168886] (GCC) 


# uname -a
Linux debian 2.6.32-5-amd64 #1 SMP Wed Jan 12 05:14:59 UTC 2011 x86_64
GNU/Linux


# cat /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c
#include "common-1.h"
int foo2 = 3;
int zz = 2;

# cat /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.hs 
static int foo1 = 9;
int foo2;
extern int zz;


If I edit a copy of common-1.c and include "common-1.hs" (instead of
"common-1.h") then the ICE does not occur (so no preprocessed source included).



Here is a small portion of gcc.log:

PASS: gcc.dg/noncompile/voidparam-1.c  -O2 -fwhopr  (test for excess errors)
testcase
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/noncompile/noncompile.exp
completed in 54 seconds
Running /usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/pch.exp ...
Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h   -O0 -g   -m32 -o
common-1.h.gch(timeout = 300)
spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O0 -g -m32 -o
common-1.h.gch

PASS: ./common-1.h  -O0 -g (test for excess errors)
Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c   -O0 -g -I.  -S 
-m32 -o common-1.s(timeout = 300)
spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -g -I. -S
-m32 -o common-1.s

/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal
compiler error: in ggc_record_overhead, at ggc-common.c:939

Please submit a full bug report,

with preprocessed source if appropriate.

See  for instructions.

compiler exited with status 1
output is:
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal
compiler error: in ggc_record_overhead, at ggc-common.c:939

Please submit a full bug report,

with preprocessed source if appropriate.

See  for instructions.


FAIL: gcc.dg/pch/common-1.c  -O0 -g -I. (internal compiler error)
FAIL: gcc.dg/pch/common-1.c  -O0 -g -I. (test for excess errors)
Excess errors:
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal
compiler error: in ggc_record_overhead, at ggc-common.c:939

assembly file 'common-1.s' missing
FAIL: gcc.dg/pch/common-1.c -O0 -g assembly comparison
Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h-O0-m32 -o
common-1.h.gch(timeout = 300)
spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/ ./common-1.h -O0 -m32 -o common-1.h.gch

PASS: ./common-1.h   -O0  (test for excess errors)
Executing on host: /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c-O0  -I.  -S 
-m32 -o common-1.s(timeout = 300)
spawn /usr/local/gcc-4_5-branch_build/gcc/xgcc
-B/usr/local/gcc-4_5-branch_build/gcc/
/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c -O0 -I. -S -m32
-o common-1.s

/usr/local/gcc-4_5-branch/gcc/testsuite/gcc.dg/pch/common-1.c:3:1: internal
compiler error: in ggc_record_overhead, at ggc-common.c:939

Please submi

[Bug middle-end/28734] gather stats vs PCH

2009-01-21 Thread rob1weld at aol dot com


--- Comment #9 from rob1weld at aol dot com  2009-01-22 01:51 ---
Confirmed, trunk, i386-pc-solaris2.11 - the gcc.log is:

/usr/share/src/gcc_trunk/gcc/testsuite/gcc.dg/pch/common-1.c:3: internal
compiler error: in ggc_record_overhead, at ggc-common.c:873

/usr/share/src/gcc_trunk/gcc/testsuite/gcc.dg/pch/counter-1.c:7: internal
compiler error: in ggc_record_overhead, at ggc-common.c:873


More info:
Results for 4.4.0 20090121 (experimental) [trunk revision 143538] (GCC)
testsuite on i386-pc-solaris2.11
http://gcc.gnu.org/ml/gcc-testresults/2009-01/msg02197.html

Rob


-- 


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



[Bug middle-end/28734] gather stats vs PCH

2006-08-17 Thread Vladislav dot Mikhailikov at paradox-neo dot uz


--- Comment #8 from Vladislav dot Mikhailikov at paradox-neo dot uz  
2006-08-17 18:51 ---
It seems that gcc-4.2 has the same problem. At least all .pch tests fail with
that option set


-- 


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



[Bug middle-end/28734] gather stats vs PCH

2006-08-16 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||hubicka at gcc dot gnu dot
   ||org
 Status|WAITING |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2006-08-16 16:53:59
   date||
Summary|EastLinux Corporate Desktop |gather stats vs PCH
   |1.0 (Pre)   |


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