public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c
@ 2012-07-10  8:00 rainer@emrich-ebersheim.de
  2012-07-10  9:09 ` [Bug bootstrap/53912] [4.7 Regression] " rguenth at gcc dot gnu.org
                   ` (37 more replies)
  0 siblings, 38 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-10  8:00 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53912
           Summary: bootstrap fails at stage 2 with error: cast from
                    'void*' to 'long int' loses precision in ggc-common.c
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rainer@emrich-ebersheim.de


bootstrap native x86_64-w64-mingw32 fails at stage 2:

/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/./prev-gcc/g++
-B/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/./prev-gcc/
-B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-4.7.2/x86_64-w64-mingw32/bin/
-nostdinc++
-B/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs
-B/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs
-I/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32
-I/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/include
-I/SCRATCH/tmp.pBPKMqodMC/src/gcc-4.7.2/libstdc++-v3/libsupc++
-L/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs
-L/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/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.7.2/gcc
-I../../../src/gcc-4.7.2/gcc/. -I../../../src/gcc-4.7.2/gcc/../include
-I./../intl -I../../../src/gcc-4.7.2/gcc/../libcpp/include
-I/SCRATCH/tmp.pBPKMqodMC/install/include
-I/SCRATCH/tmp.pBPKMqodMC/install/include
-I/SCRATCH/tmp.pBPKMqodMC/install/include 
-I../../../src/gcc-4.7.2/gcc/../libdecnumber
-I../../../src/gcc-4.7.2/gcc/../libdecnumber/bid -I../libdecnumber
-I/SCRATCH/tmp.pBPKMqodMC/install/include 
-I/SCRATCH/tmp.pBPKMqodMC/install/include 
../../../src/gcc-4.7.2/gcc/ggc-common.c -o ggc-common.o
../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'int
gt_pch_note_object(void*, void*, gt_note_pointers, gt_types_enum)':
../../../src/gcc-4.7.2/gcc/ggc-common.c:326:49: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'void
gt_pch_note_reorder(void*, void*, gt_handle_reorder)':
../../../src/gcc-4.7.2/gcc/ggc-common.c:359:44: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'hashval_t
saving_htab_hash(const void*)':
../../../src/gcc-4.7.2/gcc/ggc-common.c:370:10: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'void relocate_ptrs(void*,
void*)':
../../../src/gcc-4.7.2/gcc/ggc-common.c:443:45: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'void
write_pch_globals(const ggc_root_tab* const*, traversal_state*)':
../../../src/gcc-4.7.2/gcc/ggc-common.c:472:42: error: cast from 'void*' to
'long int' loses precision [-fpermissive]
make[3]: *** [ggc-common.o] Error 1
make[3]: Leaving directory `/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2'
make: *** [all] Error 2



If configured with --disable-build-poststage1-with-cxx bootstrap succeeds.


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

* [Bug bootstrap/53912] [4.7 Regression] bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c
  2012-07-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
@ 2012-07-10  9:09 ` rguenth at gcc dot gnu.org
  2012-07-11 14:07 ` rainer@emrich-ebersheim.de
                   ` (36 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-10  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.2


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

* [Bug bootstrap/53912] [4.7 Regression] bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c
  2012-07-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
  2012-07-10  9:09 ` [Bug bootstrap/53912] [4.7 Regression] " rguenth at gcc dot gnu.org
@ 2012-07-11 14:07 ` rainer@emrich-ebersheim.de
  2012-07-16 17:10 ` [Bug bootstrap/53912] [4.7/4.8 " rainer@emrich-ebersheim.de
                   ` (35 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-11 14:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Rainer Emrich <rainer@emrich-ebersheim.de> 2012-07-11 14:07:17 UTC ---
Created attachment 27776
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27776
preprocessed source

I assume for trunk there is the same issue, because ggc-common.c hasn't changed


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

* [Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c
  2012-07-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
  2012-07-10  9:09 ` [Bug bootstrap/53912] [4.7 Regression] " rguenth at gcc dot gnu.org
  2012-07-11 14:07 ` rainer@emrich-ebersheim.de
@ 2012-07-16 17:10 ` rainer@emrich-ebersheim.de
  2012-07-16 17:17 ` rainer@emrich-ebersheim.de
                   ` (34 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-16 17:10 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Emrich <rainer@emrich-ebersheim.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.7 Regression] bootstrap  |[4.7/4.8 Regression]
                   |fails at stage 2 with       |bootstrap fails at stage 2
                   |error: cast from 'void*' to |with error: cast from
                   |'long int' loses precision  |'void*' to 'long int' loses
                   |in ggc-common.c             |precision in ggc-common.c
      Known to fail|                            |4.8.0

--- Comment #2 from Rainer Emrich <rainer@emrich-ebersheim.de> 2012-07-16 17:10:16 UTC ---
There are similar issues in other source files most of the form:
error: cast loses precision [-fpermissive]

And the same for gcc-4.8.0


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

* [Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c
  2012-07-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (2 preceding siblings ...)
  2012-07-16 17:10 ` [Bug bootstrap/53912] [4.7/4.8 " rainer@emrich-ebersheim.de
@ 2012-07-16 17:17 ` rainer@emrich-ebersheim.de
  2012-07-19 15:41 ` [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 rainer@emrich-ebersheim.de
                   ` (33 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-16 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Rainer Emrich <rainer@emrich-ebersheim.de> 2012-07-16 17:17:24 UTC ---
Created attachment 27804
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27804
Errors in stage 2

These are the errors I get in stage 2 for gcc-4.8.0.

How to proceed?


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (3 preceding siblings ...)
  2012-07-16 17:17 ` rainer@emrich-ebersheim.de
@ 2012-07-19 15:41 ` rainer@emrich-ebersheim.de
  2012-07-19 16:12 ` redi at gcc dot gnu.org
                   ` (32 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-19 15:41 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Emrich <rainer@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 <rainer@emrich-ebersheim.de> 2012-07-19 15:41:11 UTC ---
Changed summary for  better description of the real problem.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (4 preceding siblings ...)
  2012-07-19 15:41 ` [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 rainer@emrich-ebersheim.de
@ 2012-07-19 16:12 ` redi at gcc dot gnu.org
  2012-07-19 20:33 ` rainer@emrich-ebersheim.de
                   ` (31 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-19 16:12 UTC (permalink / raw)
  To: gcc-bugs

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?


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (5 preceding siblings ...)
  2012-07-19 16:12 ` redi at gcc dot gnu.org
@ 2012-07-19 20:33 ` rainer@emrich-ebersheim.de
  2012-07-19 20:52 ` iant at google dot com
                   ` (30 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-19 20:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Rainer Emrich <rainer@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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (6 preceding siblings ...)
  2012-07-19 20:33 ` rainer@emrich-ebersheim.de
@ 2012-07-19 20:52 ` iant at google dot com
  2012-07-19 22:31 ` rainer@emrich-ebersheim.de
                   ` (29 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: iant at google dot com @ 2012-07-19 20:52 UTC (permalink / raw)
  To: gcc-bugs

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
<rainer@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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (7 preceding siblings ...)
  2012-07-19 20:52 ` iant at google dot com
@ 2012-07-19 22:31 ` rainer@emrich-ebersheim.de
  2012-07-19 22:41 ` rainer@emrich-ebersheim.de
                   ` (28 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-19 22:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Rainer Emrich <rainer@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?


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (8 preceding siblings ...)
  2012-07-19 22:31 ` rainer@emrich-ebersheim.de
@ 2012-07-19 22:41 ` rainer@emrich-ebersheim.de
  2012-07-19 23:17 ` rainer@emrich-ebersheim.de
                   ` (27 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-19 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Rainer Emrich <rainer@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?


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (9 preceding siblings ...)
  2012-07-19 22:41 ` rainer@emrich-ebersheim.de
@ 2012-07-19 23:17 ` rainer@emrich-ebersheim.de
  2012-07-19 23:51 ` redi at gcc dot gnu.org
                   ` (26 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-19 23:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Rainer Emrich <rainer@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;
                                          ^


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (10 preceding siblings ...)
  2012-07-19 23:17 ` rainer@emrich-ebersheim.de
@ 2012-07-19 23:51 ` redi at gcc dot gnu.org
  2012-07-20 15:30 ` rainer@emrich-ebersheim.de
                   ` (25 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-19 23:51 UTC (permalink / raw)
  To: gcc-bugs

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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (11 preceding siblings ...)
  2012-07-19 23:51 ` redi at gcc dot gnu.org
@ 2012-07-20 15:30 ` rainer@emrich-ebersheim.de
  2012-07-20 15:44 ` ubizjak at gmail dot com
                   ` (24 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-20 15:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Rainer Emrich <rainer@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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (12 preceding siblings ...)
  2012-07-20 15:30 ` rainer@emrich-ebersheim.de
@ 2012-07-20 15:44 ` ubizjak at gmail dot com
  2012-07-20 15:53 ` ubizjak at gmail dot com
                   ` (23 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-20 15:44 UTC (permalink / raw)
  To: gcc-bugs

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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (13 preceding siblings ...)
  2012-07-20 15:44 ` ubizjak at gmail dot com
@ 2012-07-20 15:53 ` ubizjak at gmail dot com
  2012-07-20 15:54 ` jakub at gcc dot gnu.org
                   ` (22 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-20 15:53 UTC (permalink / raw)
  To: gcc-bugs

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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (14 preceding siblings ...)
  2012-07-20 15:53 ` ubizjak at gmail dot com
@ 2012-07-20 15:54 ` jakub at gcc dot gnu.org
  2012-07-20 15:57 ` ubizjak at gmail dot com
                   ` (21 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-07-20 15:54 UTC (permalink / raw)
  To: gcc-bugs

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).


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (15 preceding siblings ...)
  2012-07-20 15:54 ` jakub at gcc dot gnu.org
@ 2012-07-20 15:57 ` ubizjak at gmail dot com
  2012-07-20 16:18 ` rainer@emrich-ebersheim.de
                   ` (20 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-20 15:57 UTC (permalink / raw)
  To: gcc-bugs

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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (16 preceding siblings ...)
  2012-07-20 15:57 ` ubizjak at gmail dot com
@ 2012-07-20 16:18 ` rainer@emrich-ebersheim.de
  2012-08-18 13:13 ` vanboxem.ruben at gmail dot com
                   ` (19 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rainer@emrich-ebersheim.de @ 2012-07-20 16:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Rainer Emrich <rainer@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?


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (17 preceding siblings ...)
  2012-07-20 16:18 ` rainer@emrich-ebersheim.de
@ 2012-08-18 13:13 ` vanboxem.ruben at gmail dot com
  2012-09-07  9:43 ` rguenth at gcc dot gnu.org
                   ` (18 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: vanboxem.ruben at gmail dot com @ 2012-08-18 13:13 UTC (permalink / raw)
  To: gcc-bugs

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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (18 preceding siblings ...)
  2012-08-18 13:13 ` vanboxem.ruben at gmail dot com
@ 2012-09-07  9:43 ` rguenth at gcc dot gnu.org
  2012-09-10 20:04 ` i.nixman at gmail dot com
                   ` (17 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07  9:43 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (19 preceding siblings ...)
  2012-09-07  9:43 ` rguenth at gcc dot gnu.org
@ 2012-09-10 20:04 ` i.nixman at gmail dot com
  2012-09-20 10:16 ` jakub at gcc dot gnu.org
                   ` (16 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: i.nixman at gmail dot com @ 2012-09-10 20:04 UTC (permalink / raw)
  To: gcc-bugs

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?


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (20 preceding siblings ...)
  2012-09-10 20:04 ` i.nixman at gmail dot com
@ 2012-09-20 10:16 ` jakub at gcc dot gnu.org
  2012-11-29 15:26 ` ktietz at gcc dot gnu.org
                   ` (15 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 10:16 UTC (permalink / raw)
  To: gcc-bugs


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.


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (21 preceding siblings ...)
  2012-09-20 10:16 ` jakub at gcc dot gnu.org
@ 2012-11-29 15:26 ` ktietz at gcc dot gnu.org
  2012-11-29 15:28 ` ktietz at gcc dot gnu.org
                   ` (14 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-29 15:26 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (22 preceding siblings ...)
  2012-11-29 15:26 ` ktietz at gcc dot gnu.org
@ 2012-11-29 15:28 ` ktietz at gcc dot gnu.org
  2012-11-29 15:29 ` ktietz at gcc dot gnu.org
                   ` (13 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-29 15:28 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (23 preceding siblings ...)
  2012-11-29 15:28 ` ktietz at gcc dot gnu.org
@ 2012-11-29 15:29 ` ktietz at gcc dot gnu.org
  2012-11-29 18:41 ` ktietz at gcc dot gnu.org
                   ` (12 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-29 15:29 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (24 preceding siblings ...)
  2012-11-29 15:29 ` ktietz at gcc dot gnu.org
@ 2012-11-29 18:41 ` ktietz at gcc dot gnu.org
  2012-11-29 18:44 ` ktietz at gcc dot gnu.org
                   ` (11 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-29 18:41 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=193946
Log:
    PR target/53912
    * prefix.c (lookup_key): Replace xmalloc/xrealloc
    use by XNEWVEC/XRESIZEVEC.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/prefix.c


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (25 preceding siblings ...)
  2012-11-29 18:41 ` ktietz at gcc dot gnu.org
@ 2012-11-29 18:44 ` ktietz at gcc dot gnu.org
  2012-12-03  6:56 ` ktietz at gcc dot gnu.org
                   ` (10 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-29 18:44 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (26 preceding siblings ...)
  2012-11-29 18:44 ` ktietz at gcc dot gnu.org
@ 2012-12-03  6:56 ` ktietz at gcc dot gnu.org
  2012-12-03  6:57 ` ktietz at gcc dot gnu.org
                   ` (9 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-03  6:56 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (27 preceding siblings ...)
  2012-12-03  6:56 ` ktietz at gcc dot gnu.org
@ 2012-12-03  6:57 ` ktietz at gcc dot gnu.org
  2012-12-03  7:02 ` ktietz at gcc dot gnu.org
                   ` (8 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-03  6:57 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=194067
Log:
    PR target/53912
    * pointer-set.c (hash1): Cast from pointer via uintptr_t.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/pointer-set.c


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (28 preceding siblings ...)
  2012-12-03  6:57 ` ktietz at gcc dot gnu.org
@ 2012-12-03  7:02 ` ktietz at gcc dot gnu.org
  2012-12-03  7:02 ` ktietz at gcc dot gnu.org
                   ` (7 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-03  7:02 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (29 preceding siblings ...)
  2012-12-03  7:02 ` ktietz at gcc dot gnu.org
@ 2012-12-03  7:02 ` ktietz at gcc dot gnu.org
  2012-12-03  7:05 ` ktietz at gcc dot gnu.org
                   ` (6 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-03  7:02 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (31 preceding siblings ...)
  2012-12-03  7:05 ` ktietz at gcc dot gnu.org
@ 2012-12-03  7:05 ` ktietz at gcc dot gnu.org
  2012-12-10  9:53 ` ktietz at gcc dot gnu.org
                   ` (4 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-03  7:05 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (30 preceding siblings ...)
  2012-12-03  7:02 ` ktietz at gcc dot gnu.org
@ 2012-12-03  7:05 ` ktietz at gcc dot gnu.org
  2012-12-03  7:05 ` ktietz at gcc dot gnu.org
                   ` (5 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-03  7:05 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (32 preceding siblings ...)
  2012-12-03  7:05 ` ktietz at gcc dot gnu.org
@ 2012-12-10  9:53 ` ktietz at gcc dot gnu.org
  2012-12-10  9:54 ` ktietz at gcc dot gnu.org
                   ` (3 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-10  9:53 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (33 preceding siblings ...)
  2012-12-10  9:53 ` ktietz at gcc dot gnu.org
@ 2012-12-10  9:54 ` ktietz at gcc dot gnu.org
  2012-12-10  9:57 ` ktietz at gcc dot gnu.org
                   ` (2 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-10  9:54 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (34 preceding siblings ...)
  2012-12-10  9:54 ` ktietz at gcc dot gnu.org
@ 2012-12-10  9:57 ` ktietz at gcc dot gnu.org
  2012-12-10 10:01 ` ktietz at gcc dot gnu.org
  2012-12-20 19:23 ` ktietz at gcc dot gnu.org
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-10  9:57 UTC (permalink / raw)
  To: gcc-bugs


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=gcc&view=rev&rev=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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (35 preceding siblings ...)
  2012-12-10  9:57 ` ktietz at gcc dot gnu.org
@ 2012-12-10 10:01 ` ktietz at gcc dot gnu.org
  2012-12-20 19:23 ` ktietz at gcc dot gnu.org
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-10 10:01 UTC (permalink / raw)
  To: gcc-bugs


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


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

* [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-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
                   ` (36 preceding siblings ...)
  2012-12-10 10:01 ` ktietz at gcc dot gnu.org
@ 2012-12-20 19:23 ` ktietz at gcc dot gnu.org
  37 siblings, 0 replies; 39+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-12-20 19:23 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #36 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-12-20 19:23:29 UTC ---
*** Bug 55165 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2012-12-20 19:23 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10  8:00 [Bug bootstrap/53912] New: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c rainer@emrich-ebersheim.de
2012-07-10  9:09 ` [Bug bootstrap/53912] [4.7 Regression] " rguenth at gcc dot gnu.org
2012-07-11 14:07 ` rainer@emrich-ebersheim.de
2012-07-16 17:10 ` [Bug bootstrap/53912] [4.7/4.8 " rainer@emrich-ebersheim.de
2012-07-16 17:17 ` rainer@emrich-ebersheim.de
2012-07-19 15:41 ` [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 rainer@emrich-ebersheim.de
2012-07-19 16:12 ` redi at gcc dot gnu.org
2012-07-19 20:33 ` rainer@emrich-ebersheim.de
2012-07-19 20:52 ` iant at google dot com
2012-07-19 22:31 ` rainer@emrich-ebersheim.de
2012-07-19 22:41 ` rainer@emrich-ebersheim.de
2012-07-19 23:17 ` rainer@emrich-ebersheim.de
2012-07-19 23:51 ` redi at gcc dot gnu.org
2012-07-20 15:30 ` rainer@emrich-ebersheim.de
2012-07-20 15:44 ` ubizjak at gmail dot com
2012-07-20 15:53 ` ubizjak at gmail dot com
2012-07-20 15:54 ` jakub at gcc dot gnu.org
2012-07-20 15:57 ` ubizjak at gmail dot com
2012-07-20 16:18 ` rainer@emrich-ebersheim.de
2012-08-18 13:13 ` vanboxem.ruben at gmail dot com
2012-09-07  9:43 ` rguenth at gcc dot gnu.org
2012-09-10 20:04 ` i.nixman at gmail dot com
2012-09-20 10:16 ` jakub at gcc dot gnu.org
2012-11-29 15:26 ` ktietz at gcc dot gnu.org
2012-11-29 15:28 ` ktietz at gcc dot gnu.org
2012-11-29 15:29 ` ktietz at gcc dot gnu.org
2012-11-29 18:41 ` ktietz at gcc dot gnu.org
2012-11-29 18:44 ` ktietz at gcc dot gnu.org
2012-12-03  6:56 ` ktietz at gcc dot gnu.org
2012-12-03  6:57 ` ktietz at gcc dot gnu.org
2012-12-03  7:02 ` ktietz at gcc dot gnu.org
2012-12-03  7:02 ` ktietz at gcc dot gnu.org
2012-12-03  7:05 ` ktietz at gcc dot gnu.org
2012-12-03  7:05 ` ktietz at gcc dot gnu.org
2012-12-10  9:53 ` ktietz at gcc dot gnu.org
2012-12-10  9:54 ` ktietz at gcc dot gnu.org
2012-12-10  9:57 ` ktietz at gcc dot gnu.org
2012-12-10 10:01 ` ktietz at gcc dot gnu.org
2012-12-20 19:23 ` ktietz at gcc dot gnu.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).