This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28584] Cast to pointer from integer of different size



------- Comment #6 from manu at gcc dot gnu dot org  2010-04-09 07:50 -------
Subject: Bug 28584

Author: manu
Date: Fri Apr  9 07:49:41 2010
New Revision: 158150

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158150
Log:
2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>

        PR c++/28584
        * c.opt (Wint-to-pointer-cast): Available in C++.
        * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
cp/
        * typeck.c (cp_build_c_cast): Warn for casting integer to larger
        pointer type.
testsuite/
        * gcc.dg/Wint-to-pointer-cast-1.c: Move to...
        * c-c++-common/Wint-to-pointer-cast-1.c: ...  here.
        * gcc.dg/Wint-to-pointer-cast-2.c: Move to...   
        * c-c++-common/Wint-to-pointer-cast-2.c: ...  here.
        * gcc.dg/Wint-to-pointer-cast-3.c: Move to...   
        * c-c++-common/Wint-to-pointer-cast-3.c: ...  here. Update.
        * g++.old-deja/g++.mike/warn1.C: Add -Wno-int-to-pointer-cast.
        * g++.dg/other/increment1.C: Likewise.

Added:
    trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-1.c   (props changed)
      - copied unchanged from r158134,
trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-1.c
    trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-2.c   (props changed)
      - copied unchanged from r158134,
trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-2.c
    trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c   (contents,
props changed)
      - copied, changed from r158134,
trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-3.c
Removed:
    trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-1.c
    trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-2.c
    trunk/gcc/testsuite/gcc.dg/Wint-to-pointer-cast-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c.opt
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/other/increment1.C
    trunk/gcc/testsuite/g++.old-deja/g++.mike/warn1.C

Propchange: trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-1.c
            ('svn:mergeinfo' added)

Propchange: trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-2.c
            ('svn:mergeinfo' added)

Propchange: trunk/gcc/testsuite/c-c++-common/Wint-to-pointer-cast-3.c
            ('svn:mergeinfo' added)


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]