[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-10 Thread ktietz at gcc dot gnu.org


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



--- Comment #32 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-10 09:53:13 
UTC ---

Author: ktietz

Date: Mon Dec 10 09:53:08 2012

New Revision: 194348



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194348

Log:

PR target/53912

* print-tree.c (print_node): Cast from pointer via uintptr_t.





Modified:

trunk/gcc/ChangeLog

trunk/gcc/print-tree.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-10 Thread ktietz at gcc dot gnu.org


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



--- Comment #33 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-10 09:54:20 
UTC ---

Author: ktietz

Date: Mon Dec 10 09:54:16 2012

New Revision: 194349



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194349

Log:

PR target/53912

* print-tree.c (print_node): Cast from pointer via uintptr_t.





Modified:

branches/gcc-4_7-branch/gcc/ChangeLog

branches/gcc-4_7-branch/gcc/print-tree.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-10 Thread ktietz at gcc dot gnu.org


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



--- Comment #34 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-10 09:57:06 
UTC ---

Author: ktietz

Date: Mon Dec 10 09:57:02 2012

New Revision: 194350



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194350

Log:

PR target/53912

* stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.

(expand_case): Likewise.





Modified:

trunk/gcc/ChangeLog

trunk/gcc/stmt.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-10 Thread ktietz at gcc dot gnu.org


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



Kai Tietz ktietz at gcc dot gnu.org changed:



   What|Removed |Added



 Status|UNCONFIRMED |RESOLVED

 Resolution||FIXED



--- Comment #35 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-10 10:01:24 
UTC ---

Fixed on trunk and 4.7 branch


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-02 Thread ktietz at gcc dot gnu.org


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



--- Comment #26 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-03 06:56:02 
UTC ---

Author: ktietz

Date: Mon Dec  3 06:55:55 2012

New Revision: 194066



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194066

Log:

PR target/53912

* pointer-set.c (hash1): Cast from pointer via uintptr_t.





Modified:

branches/gcc-4_7-branch/gcc/ChangeLog

branches/gcc-4_7-branch/gcc/pointer-set.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-02 Thread ktietz at gcc dot gnu.org


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



--- Comment #27 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-03 06:56:27 
UTC ---

Author: ktietz

Date: Mon Dec  3 06:56:16 2012

New Revision: 194067



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194067

Log:

PR target/53912

* pointer-set.c (hash1): Cast from pointer via uintptr_t.





Modified:

trunk/gcc/ChangeLog

trunk/gcc/pointer-set.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-02 Thread ktietz at gcc dot gnu.org


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



--- Comment #28 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-03 07:01:50 
UTC ---

Author: ktietz

Date: Mon Dec  3 07:01:43 2012

New Revision: 194069



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194069

Log:

PR target/53912

* tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.





Modified:

branches/gcc-4_7-branch/gcc/ChangeLog

branches/gcc-4_7-branch/gcc/tree-dump.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-02 Thread ktietz at gcc dot gnu.org


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



--- Comment #29 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-03 07:02:26 
UTC ---

Author: ktietz

Date: Mon Dec  3 07:02:17 2012

New Revision: 194070



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194070

Log:

PR target/53912

* tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.





Modified:

trunk/gcc/ChangeLog

trunk/gcc/tree-dump.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-02 Thread ktietz at gcc dot gnu.org


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



--- Comment #30 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-03 07:04:56 
UTC ---

Author: ktietz

Date: Mon Dec  3 07:04:50 2012

New Revision: 194071



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194071

Log:

PR target/53912

* ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.





Modified:

branches/gcc-4_7-branch/gcc/ChangeLog

branches/gcc-4_7-branch/gcc/ggc-common.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-12-02 Thread ktietz at gcc dot gnu.org


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



--- Comment #31 from Kai Tietz ktietz at gcc dot gnu.org 2012-12-03 07:05:31 
UTC ---

Author: ktietz

Date: Mon Dec  3 07:05:26 2012

New Revision: 194072



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=194072

Log:

PR target/53912

* ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.





Modified:

trunk/gcc/ChangeLog

trunk/gcc/ggc-common.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-11-29 Thread ktietz at gcc dot gnu.org


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



--- Comment #21 from Kai Tietz ktietz at gcc dot gnu.org 2012-11-29 15:26:36 
UTC ---

Author: ktietz

Date: Thu Nov 29 15:26:29 2012

New Revision: 193934



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=193934

Log:

PR target/53912

* class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t.

(dump_vtable): Likewise.





Modified:

trunk/gcc/cp/ChangeLog

trunk/gcc/cp/class.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-11-29 Thread ktietz at gcc dot gnu.org


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



--- Comment #22 from Kai Tietz ktietz at gcc dot gnu.org 2012-11-29 15:27:45 
UTC ---

Author: ktietz

Date: Thu Nov 29 15:27:36 2012

New Revision: 193935



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=193935

Log:

PR target/53912

* class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t.

(dump_vtable): Likewise.





Modified:

branches/gcc-4_7-branch/gcc/cp/ChangeLog

branches/gcc-4_7-branch/gcc/cp/class.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-11-29 Thread ktietz at gcc dot gnu.org


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



--- Comment #23 from Kai Tietz ktietz at gcc dot gnu.org 2012-11-29 15:28:54 
UTC ---

Author: ktietz

Date: Thu Nov 29 15:28:48 2012

New Revision: 193936



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=193936

Log:

PR target/53912

* class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t.

(dump_vtable): Likewise.





Modified:

branches/gcc-4_6-branch/gcc/cp/ChangeLog

branches/gcc-4_6-branch/gcc/cp/class.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-11-29 Thread ktietz at gcc dot gnu.org


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



--- Comment #24 from Kai Tietz ktietz at gcc dot gnu.org 2012-11-29 18:40:35 
UTC ---

Author: ktietz

Date: Thu Nov 29 18:40:27 2012

New Revision: 193946



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=193946

Log:

PR target/53912

* prefix.c (lookup_key): Replace xmalloc/xrealloc

use by XNEWVEC/XRESIZEVEC.





Modified:

trunk/gcc/ChangeLog

trunk/gcc/prefix.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-11-29 Thread ktietz at gcc dot gnu.org


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



--- Comment #25 from Kai Tietz ktietz at gcc dot gnu.org 2012-11-29 18:43:35 
UTC ---

Author: ktietz

Date: Thu Nov 29 18:43:29 2012

New Revision: 193947



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=193947

Log:

PR target/53912

* prefix.c (lookup_key): Replace xmalloc/xrealloc

use by XNEWVEC/XRESIZEVEC.





Modified:

branches/gcc-4_7-branch/gcc/ChangeLog

branches/gcc-4_7-branch/gcc/prefix.c


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-09-20 Thread jakub at gcc dot gnu.org


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



Jakub Jelinek jakub at gcc dot gnu.org changed:



   What|Removed |Added



   Target Milestone|4.7.2   |4.7.3



--- Comment #20 from Jakub Jelinek jakub at gcc dot gnu.org 2012-09-20 
10:14:35 UTC ---

GCC 4.7.2 has been released.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-09-10 Thread i.nixman at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #19 from niXman i.nixman at gmail dot com 2012-09-10 20:04:16 UTC 
---
(In reply to comment #12)
 Created attachment 27846 [details]
 proposed patch
 
 This fixes the C and C++ part.

This patch is correct. Why not apply?


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-09-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P2


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-08-18 Thread vanboxem.ruben at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

Ruben Van Boxem vanboxem.ruben at gmail dot com changed:

   What|Removed |Added

 CC||ktietz at gcc dot gnu.org,
   ||vanboxem.ruben at gmail dot
   ||com

--- Comment #18 from Ruben Van Boxem vanboxem.ruben at gmail dot com 
2012-08-18 13:12:54 UTC ---
This is still an issue on current GCC trunk.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-20 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #12 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-20 
15:30:09 UTC ---
Created attachment 27846
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27846
proposed patch

This fixes the C and C++ part.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-20 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #13 from Uros Bizjak ubizjak at gmail dot com 2012-07-20 15:44:27 
UTC ---
(In reply to comment #12)
 Created attachment 27846 [details]
 proposed patch
 
 This fixes the C and C++ part.

-#define POINTER_HASH(x) (hashval_t)((long)x  3)
+#define POINTER_HASH(x) (hashval_t)((uintptr_t)x  3)

Probably intptr_t here.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-20 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #14 from Uros Bizjak ubizjak at gmail dot com 2012-07-20 15:53:07 
UTC ---
(In reply to comment #9)
 ../../../src/gcc-4.8.0/gcc/tree-dump.c:171:63: error: cast from 'void*' to
 'long unsigned int' loses precision [-fpermissive]
fprintf (di-stream, %-4s: %-8lx , field, (unsigned long) ptr);
 
 And here?

Use %p in printf templates, without casts.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #15 from Jakub Jelinek jakub at gcc dot gnu.org 2012-07-20 
15:54:08 UTC ---
That patch can't work properly, on targets where uintptr_t isn't unsigned long
you'll either get warnings from using %lx for it, or it will misbehave if
uintptr_t is even different size.  You either need to cast the argument
cast to uintptr_t afterwards to (unsigned long), or some other type and adjust
%lx to something matching it.  POSIX supports %zx for size_t and %tx for
ptrdiff_t, but uintptr_t doesn't have to match either of those, furthermore we
shouldn't rely on it being supported (unlike %lx).


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-20 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #16 from Uros Bizjak ubizjak at gmail dot com 2012-07-20 15:56:43 
UTC ---
(In reply to comment #8)
 ../../../src/gcc-4.8.0/gcc/print-tree.c:258:31: error: cast from 'tree' to
 'long unsigned int' loses precision [-fpermissive]
hash = ((unsigned long) node) % HASH_SIZE;
 
 Same here?

Use %p with (void *) cast.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-20 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #17 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-20 
16:18:00 UTC ---
I'm travelling for 2 weeks from now on. During this time I have no opportunity
to work any further on this issue.

Kai, perhaps you may help out?


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

Rainer Emrich rai...@emrich-ebersheim.de changed:

   What|Removed |Added

Summary|[4.7/4.8 Regression]|[4.7/4.8 Regression]
   |bootstrap fails at stage 2  |bootstrap fails using
   |with error: cast from   |default c++ mode in stage 2
   |'void*' to 'long int' loses |and 3 for native
   |precision in ggc-common.c   |x86_64-w64-mingw32

--- Comment #4 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-19 
15:41:11 UTC ---
Changed summary for  better description of the real problem.


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org 2012-07-19 
16:12:18 UTC ---
Does changing the definition of POINTER_HASH to use intptr_t instead of long
work?


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #6 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-19 
20:33:01 UTC ---
Am 19.07.2012 18:12, schrieb redi at gcc dot gnu.org:
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912
 
 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org 2012-07-19 
 16:12:18 UTC ---
 Does changing the definition of POINTER_HASH to use intptr_t instead of long
 work?
 
This works for ggc-common.c. Ian Lance Taylor recommended to use uintptr_t
instead, but I haven't tested that.

The next failure now is:
/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/./prev-gcc/g++
-B/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/./prev-gcc/
-B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-4.8.0/x86_64-w64-mingw32/bin/
-nostdinc++
-B/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs
-B/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-I/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/include
-I/SCRATCH/tmp.xipisatGtI/src/gcc-4.8.0/libstdc++-v3/libsupc++
-L/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -gtoggle -DIN_GCC
-fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../../src/gcc-4.8.0/gcc
-I../../../src/gcc-4.8.0/gcc/. -I../../../src/gcc-4.8.0/gcc/../include
-I./../intl -I../../../src/gcc-4.8.0/gcc/../libcpp/include
-I/SCRATCH/tmp.xipisatGtI/install/include
-I/SCRATCH/tmp.xipisatGtI/install/include
-I/SCRATCH/tmp.xipisatGtI/install/include
-I../../../src/gcc-4.8.0/gcc/../libdecnumber
-I../../../src/gcc-4.8.0/gcc/../libdecnumber/bid -I../libdecnumber
-DCLOOG_INT_GMP -I/SCRATCH/tmp.xipisatGtI/install/include
-I/SCRATCH/tmp.xipisatGtI/install/include
../../../src/gcc-4.8.0/gcc/pointer-set.c -o pointer-set.o
../../../src/gcc-4.8.0/gcc/pointer-set.c: In function 'size_t hash1(const
void*,
long unsigned int, long unsigned int)':
../../../src/gcc-4.8.0/gcc/pointer-set.c:67:32: error: cast from 'const void*'
to 'long unsigned int' loses precision [-fpermissive]
   return ((A * (unsigned long) p)  shift)  (max - 1);
^
make[3]: *** [pointer-set.o] Error 1


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread iant at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #7 from iant at google dot com iant at google dot com 2012-07-19 
20:52:27 UTC ---
On Thu, Jul 19, 2012 at 1:32 PM, Rainer Emrich
rai...@emrich-ebersheim.de wrote:

 ../../../src/gcc-4.8.0/gcc/pointer-set.c: In function 'size_t hash1(const 
 void*,
 long unsigned int, long unsigned int)':
 ../../../src/gcc-4.8.0/gcc/pointer-set.c:67:32: error: cast from 'const void*'
 to 'long unsigned int' loses precision [-fpermissive]
return ((A * (unsigned long) p)  shift)  (max - 1);

Same fix.  s/unsigned long/uintptr_t/ .

Ian


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #8 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-19 
22:31:32 UTC ---
../../../src/gcc-4.8.0/gcc/print-tree.c:258:31: error: cast from 'tree' to
'long unsigned int' loses precision [-fpermissive]
   hash = ((unsigned long) node) % HASH_SIZE;

Same here?


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #9 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-19 
22:41:28 UTC ---
../../../src/gcc-4.8.0/gcc/tree-dump.c:171:63: error: cast from 'void*' to
'long unsigned int' loses precision [-fpermissive]
   fprintf (di-stream, %-4s: %-8lx , field, (unsigned long) ptr);

And here?


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread rai...@emrich-ebersheim.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #10 from Rainer Emrich rai...@emrich-ebersheim.de 2012-07-19 
23:17:40 UTC ---
../../../src/gcc-4.8.0/gcc/prefix.c: In function 'char* lookup_key(char*)':
../../../src/gcc-4.8.0/gcc/prefix.c:160:22: error: invalid conversion from
'void*' to 'char*' [-fpermissive]
   dst = xmalloc (size);
  ^
Here I assume: dst = (char *) xmalloc (size);


../../../src/gcc-4.8.0/gcc/prefix.c:165:32: error: invalid conversion from
'void*' to 'char*' [-fpermissive]
   dst = xrealloc (dst, size);
^

Here I assume: dst = (char *) xrealloc (dst, size);


Next one is more complex, probably an issue in the mingw-w64 header?

In file included from D:/x86_64-w64-trunk/mingw/include/urlmon.h:219:0,
 from D:/x86_64-w64-trunk/mingw/include/objbase.h:348,
 from D:/x86_64-w64-trunk/mingw/include/ole2.h:16,
 from D:/x86_64-w64-trunk/mingw/include/wtypes.h:12,
 from D:/x86_64-w64-trunk/mingw/include/winscard.h:10,
 from D:/x86_64-w64-trunk/mingw/include/windows.h:95,
 from ../../../src/gcc-4.8.0/gcc/prefix.c:71:
D:/x86_64-w64-trunk/mingw/include/msxml.h:636:38: error: macro abort passed 1
arguments, but takes just 0
 virtual HRESULT WINAPI abort(void) = 0;
  ^
D:/x86_64-w64-trunk/mingw/include/msxml.h:2669:38: error: macro abort passed
1 arguments, but takes just 0
 virtual HRESULT WINAPI abort(void) = 0;
  ^
D:/x86_64-w64-trunk/mingw/include/msxml.h:636:42: error: 'abort' declared as a
'virtual' field
 virtual HRESULT WINAPI abort(void) = 0;
  ^
D:/x86_64-w64-trunk/mingw/include/msxml.h:2669:42: error: 'abort' declared as a
'virtual' field
 virtual HRESULT WINAPI abort(void) = 0;
  ^


[Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32

2012-07-19 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912

--- Comment #11 from Jonathan Wakely redi at gcc dot gnu.org 2012-07-19 
23:51:11 UTC ---
(In reply to comment #8)
 ../../../src/gcc-4.8.0/gcc/print-tree.c:258:31: error: cast from 'tree' to
 'long unsigned int' loses precision [-fpermissive]
hash = ((unsigned long) node) % HASH_SIZE;
 
 Same here?

Yes. Anywhere it fails to compile because a pointer type is cast to (unsigned)
long should be cast to (u)intptr_t instead.