OSDN Git Service

PR c/11234
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Jan 2004 20:03:58 +0000 (20:03 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Jan 2004 20:03:58 +0000 (20:03 +0000)
commit48b3d38531f2736ec62d5d3af89cfc1b3a10aeea
tree48c28794b46861cbc9594568abc9b07c1a04b91e
parent60ffaf4d23b6385206e6fc4cc3a44a964e88d776
PR c/11234
* c-typeck.c (build_c_cast): If pedantic, warn for conversions
between function and object pointers.
(digest_init): When comparing a pointer to function type to the
target type, only apply TREE_TYPE once to the pointer to function
type.
* except.c (for_each_eh_label_1): Treat data as a pointer to a
function pointer rather than casting it to a function pointer.
(for_each_eh_label): Update caller.
* recog.h (struct insn_data): Use a struct or union for output.
* genoutput.c (output_insn_data): Update.
* final.c (get_insn_template): Update.

testsuite:
* gcc.dg/func-ptr-conv-1.c: New test.
* gcc.dg/weak/weak-6.c, gcc.dg/weak/weak-7.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75595 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/except.c
gcc/final.c
gcc/genoutput.c
gcc/recog.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/func-ptr-conv-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/weak/weak-6.c
gcc/testsuite/gcc.dg/weak/weak-7.c