[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-29 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-29 
14:28 ---
*** Bug 19186 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||pluto at pld-linux dot org


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-28 Thread rakdver at gcc dot gnu dot org

--- Additional Comments From rakdver at gcc dot gnu dot org  2004-12-28 
10:34 ---
Fixed.

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-28 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-28 
10:33 ---
Subject: Bug 19103

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2004-12-28 10:33:43

Modified files:
gcc: ChangeLog loop-iv.c 

Log message:
PR rtl-optimization/19103
* loop-iv.c (iv_number_of_iterations): Fix typo.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6969&r2=2.6970
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop-iv.c.diff?cvsroot=gcc&r1=2.25&r2=2.26



-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread rakdver at gcc dot gnu dot org

--- Additional Comments From rakdver at gcc dot gnu dot org  2004-12-27 
23:53 ---
Actually it is even more stupid.  Patch below, just testing.

Index: loop-iv.c
===
RCS file: /cvs/gcc/gcc/gcc/loop-iv.c,v
retrieving revision 2.25
diff -c -3 -p -r2.25 loop-iv.c
*** loop-iv.c   18 Dec 2004 20:14:24 -  2.25
--- loop-iv.c   27 Dec 2004 23:52:38 -
*** iv_number_of_iterations (struct loop *lo
*** 2132,2138 
if (iv0.step == const0_rtx)
step_val = -INTVAL (iv1.step);
else
!   step_val = INTVAL (iv1.step);

/* Ignore loops of while (i-- < 10) type.  */
if (step_val < 0)
--- 2132,2138 
if (iv0.step == const0_rtx)
step_val = -INTVAL (iv1.step);
else
!   step_val = INTVAL (iv0.step);

/* Ignore loops of while (i-- < 10) type.  */
if (step_val < 0)


-- 
   What|Removed |Added

   Keywords||patch


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread rakdver at gcc dot gnu dot org

--- Additional Comments From rakdver at gcc dot gnu dot org  2004-12-27 
23:40 ---
A stupid bug in that patch -- the condition for "inifinite" needs to be negated.

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rakdver at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
  GCC build triplet||i586-ark-linux
   GCC host triplet||i586-ark-linux
 GCC target triplet||i586-ark-linux
Summary|[4.0 Regression] unroll-|[4.0 Regression] Current CVS
   |loops creates bad code which|(2004/12/21) doesn't compile
   |causes profiledbootstrap to |with profiledbootstrap
   |failure |


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 
20:19 ---
This was caused by (found by reverting the patch):
2004-12-18  Zdenek Dvorak  <[EMAIL PROTECTED]>

PR rtl-optimization/19001
* loop-iv.c (iv_number_of_iterations): Record assumptions for loops
with power of two step to 'infinite' field.



-- 
   What|Removed |Added

 CC||rakdver at gcc dot gnu dot
   ||org


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 
20:01 ---
Note it worked with 20041211.

-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 
19:51 ---
Here is the reduced testcase, compile at "-O2 -fprofile-generate":
void abort (void);
int main()
{
  int j;
  for (j = 6; j >= 0; --j)
  if (j >= 7)
abort () ;
  return 0;
}

-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 
18:12 ---
Hmm, here is the funny part is that I can reproduce this on ppc-darwin which 
case this is unusually as 
the profiling stuff is usually target dependent at producing wrong code.

-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 
17:11 ---
(In reply to comment #7)
> Happens after stage1, and only with profiledbootstrap. 

actually this is after stage2 is built, compiling libgcc with stage2.

-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-27 
17:08 ---
So this is caused by wrong-code.

-- 
   What|Removed |Added

   Keywords||wrong-code


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread bero at arklinux dot org

--- Additional Comments From bero at arklinux dot org  2004-12-27 17:05 
---
Still happening with today's CVS btw 

-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile with profiledbootstrap

2004-12-27 Thread bero at arklinux dot org

--- Additional Comments From bero at arklinux dot org  2004-12-27 17:04 
---
Happens after stage1, and only with profiledbootstrap. 
 
stage1/xgcc -Bstage1/ -B/usr/i586-ark-linux/bin/   -g -O2 -fprofile-generate 
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror 
-fno-common   -DHAVE_CONFIG_H  -o g++ \ 
  gcc.o g++spec.o intl.o prefix.o 
version.o   ../libcpp/libcpp.a   ../libiberty/libiberty.a 
echo |  ./xgcc -B./ -B/usr/i586-ark-linux/bin/ 
-isystem /usr/i586-ark-linux/include -isystem /usr/i586-ark-linux/sys-include 
-L/usr/src/ark/BUILD/gcc4/build/gcc/../ld -E -dM - | \ 
  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \ 
s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \ 
  sort -u > tmp-macro_list 
/bin/sh ../../gcc/../move-if-change tmp-macro_list macro_list 
macro_list is unchanged 
echo timestamp > s-macro_list 
objext='.o' \ 
LIB1ASMFUNCS='' \ 
LIB2FUNCS_ST='_eprintf __gcc_bcmp' \ 
LIBGCOV='_gcov _gcov_merge_add _gcov_merge_single _gcov_merge_delta _gcov_fork 
_gcov_execl _gcov_execlp _gcov_execle _gcov_execv _gcov_execvp _gcov_execve' \ 
LIB2ADD='' \ 
LIB2ADD_ST='' \ 
LIB2ADDEH='../../gcc/unwind-dw2.c ../../gcc/unwind-dw2-fde-glibc.c 
../../gcc/unwind-sjlj.c ../../gcc/gthr-gnat.c ../../gcc/unwind-c.c' 
\ 
LIB2ADDEHSTATIC='../../gcc/unwind-dw2.c ../../gcc/unwind-dw2-fde-glibc.c 
../../gcc/unwind-sjlj.c ../../gcc/gthr-gnat.c ../../gcc/unwind-c.c' 
\ 
LIB2ADDEHSHARED='../../gcc/unwind-dw2.c ../../gcc/unwind-dw2-fde-glibc.c 
../../gcc/unwind-sjlj.c ../../gcc/gthr-gnat.c ../../gcc/unwind-c.c' 
\ 
LIB2ADDEHDEP='unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c' \ 
LIBUNWIND='' \ 
LIBUNWINDDEP='' \ 
SHLIBUNWIND_LINK='' \ 
SHLIBUNWIND_INSTALL='' \ 
FPBIT='' \ 
FPBIT_FUNCS='_pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf _fpcmp_parts_sf 
_compare_sf _eq_sf _ne_sf _gt_sf _ge_sf _lt_sf _le_sf _unord_sf _si_to_sf 
_sf_to_si _negate_sf _make_sf _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi 
_usi_to_sf' \ 
LIB2_DIVMOD_FUNCS='_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4' 
\ 
DPBIT='' \ 
DPBIT_FUNCS='_pack_df _unpack_df _addsub_df _mul_df _div_df _fpcmp_parts_df 
_compare_df _eq_df _ne_df _gt_df _ge_df _lt_df _le_df _unord_df _si_to_df 
_df_to_si _negate_df _make_df _df_to_sf _df_to_tf _thenan_df _df_to_usi 
_usi_to_df' \ 
TPBIT='' \ 
TPBIT_FUNCS='_pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf _fpcmp_parts_tf 
_compare_tf _eq_tf _ne_tf _gt_tf _ge_tf _lt_tf _le_tf _unord_tf _si_to_tf 
_tf_to_si _negate_tf _make_tf _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi 
_usi_to_tf' \ 
MULTILIBS=` ./xgcc -B./ -B/usr/i586-ark-linux/bin/ 
-isystem /usr/i586-ark-linux/include -isystem /usr/i586-ark-linux/sys-include 
-L/usr/src/ark/BUILD/gcc4/build/gcc/../ld --print-multi-lib` \ 
EXTRA_MULTILIB_PARTS='' \ 
SHLIB_LINK=' ./xgcc -B./ -B/usr/i586-ark-linux/bin/ 
-isystem /usr/i586-ark-linux/include -isystem /usr/i586-ark-linux/sys-include 
-L/usr/src/ark/BUILD/gcc4/build/gcc/../ld -O2  -DIN_GCC-W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT 
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs 
-Wl,[EMAIL PROTECTED]@.so.1 -Wl,[EMAIL PROTECTED]@ -o 
@[EMAIL PROTECTED] @multilib_flags@ @shlib_objs@ -lc && rm -f 
@[EMAIL PROTECTED] && if [ -f @[EMAIL PROTECTED] ]; then mv -f 
@[EMAIL PROTECTED] @[EMAIL PROTECTED]; else true; fi&& mv 
@[EMAIL PROTECTED] @[EMAIL PROTECTED] && ln -s 
@[EMAIL PROTECTED] @[EMAIL PROTECTED]' \ 
SHLIB_INSTALL='$(mkinstalldirs) 
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /usr/bin/install -c -m 644 
@[EMAIL PROTECTED] 
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]; rm -f 
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]; ln -s 
@[EMAIL PROTECTED] 
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]' \ 
SHLIB_EXT='.so' \ 
SHLIB_MULTILIB='' \ 
SHLIB_MKMAP='../../gcc/mkmap-symver.awk' \ 
SHLIB_MKMAP_OPTS='' \ 
SHLIB_MAPFILES='../../gcc/libgcc-std.ver ../../gcc/config/libgcc-glibc.ver' \ 
SHLIB_NM_FLAGS='-pg' \ 
MULTILIB_OSDIRNAMES='' \ 
ASM_HIDDEN_OP='' \ 
mkinstalldirs='/bin/sh ../../gcc/../mkinstalldirs' \ 
  /bin/sh mklibgcc > tmp-libgcc.mk 
mv tmp-libgcc.mk libgcc.mk 
./xgcc -B./ -B/usr/i586-ark-linux/bin/ -isystem /usr/i586-ark-linux/include 
-isystem /usr/i586-ark-linux/sys-include 
-L/usr/src/ark/BUILD/gcc4/build/gcc/../ld -O2 -DIN_GCC-W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc -I../../gcc/. 
-I../../gcc/../include -I../../gcc/../libcpp/include   -g0 
-finhibit-size-directive -fno-inline-functions -fno-exceptions 
-fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \ 
   -c ../../gcc/crtstuff.c -DCRT_BEGIN \ 
  -o crtbegin.o 
../../gcc/crtstuff.c: In function '__do_global_dtors_aux': 
../../gcc/crtstuff.c:290: internal compiler error: vi

[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile

2004-12-24 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-24 
15:35 ---
Again which stage is this?
Can you attach the full log?

-- 
   What|Removed |Added

 Status|NEW |WAITING


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile

2004-12-21 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-21 
22:16 ---
(In reply to comment #4)
> Verified to happen only with profiledbootstrap, bootstrap w/o profile barfs 
> later w/ an unrelated error 
>  
> ../../xgcc -B../../ -c -g -O2 -fPIC  -W -Wall -gnatpg  s-fileio.adb -o 
> s-fileio.o 
> s-fileio.adb: In function 'System.File_Io.Finalize': 
> s-fileio.adb:372: warning: '' is used uninitialized in this 
> function 
Which has already been fixed.



-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile

2004-12-21 Thread bero at arklinux dot org

--- Additional Comments From bero at arklinux dot org  2004-12-21 22:15 
---
Verified to happen only with profiledbootstrap, bootstrap w/o profile barfs 
later w/ an unrelated error 
 
../../xgcc -B../../ -c -g -O2 -fPIC  -W -Wall -gnatpg  s-fileio.adb -o 
s-fileio.o 
s-fileio.adb: In function 'System.File_Io.Finalize': 
s-fileio.adb:372: warning: '' is used uninitialized in this 
function 
+===GNAT BUG DETECTED==+ 
| 4.0.0 20041221 (experimental) (i586-ark-linux-gnu) GCC error:| 
| in make_decl_rtl, at varasm.c:867| 
| Error detected at s-fileio.adb:1090:1| 
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.| 
| Include the entire contents of this bug box in the report.   | 
| Include the exact gcc or gnatmake command that you entered.  | 
| Also include sources listed below in gnatchop format | 
| (concatenated together with no headers between files).   | 
+==+ 
 
Please include these source files with error report 
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed. 
 
raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:376 
 

-- 


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile

2004-12-21 Thread bero at arklinux dot org

--- Additional Comments From bero at arklinux dot org  2004-12-21 19:21 
---
I did:  
configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man  
--infodir=/usr/share/info --enable-static --enable-shared  
--enable-fast-install --enable-libstdcxx-pch --enable-__cxa_atexit  
--enable-tls --target=i586-ark-linux --host=i586-ark-linux  
--build=i586-ark-linux --enable-cxx-flags="-O2 -march=i586 -mcpu=i686"  
--with-system-zlib --enable-threads --enable-libada --enable-libgcj  
--enable-interpreter --enable-hash-synchronization  
  
make profiledbootstrap 
 
Currently trying to see if it's reproducable with "make bootstrap" instead of 
"make profiledbootstrap". 
  

-- 
   What|Removed |Added

 Status|WAITING |NEW
 Ever Confirmed||1


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


[Bug rtl-optimization/19103] [4.0 Regression] Current CVS (2004/12/21) doesn't compile

2004-12-21 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-21 
19:00 ---
Hmm, this works with a cross compiler, how did you configure gcc?
Also what stage is this?

-- 
   What|Removed |Added

 Status|UNCONFIRMED |WAITING
  Component|bootstrap   |rtl-optimization
   Keywords||build, ice-on-valid-code
Summary|Current CVS (2004/12/21)|[4.0 Regression] Current CVS
   |doesn't compile |(2004/12/21) doesn't compile
   Target Milestone|--- |4.0.0


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