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 ada/22381] Ada produces mis-match (non compatible) types in MODIFY_EXPR



------- Comment #5 from cvs-commit at gcc dot gnu dot org  2005-10-21 15:48 -------
Subject: Bug 22381

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     ebotcazou@gcc.gnu.org   2005-10-21 15:47:47

Modified files:
        gcc/ada        : ChangeLog utils2.c gigi.h trans.c 

Log message:
        PR ada/21937
        PR ada/22328
        PR ada/22381
        PR ada/22383
        PR ada/22419
        PR ada/22420
        * utils2.c (build_return_expr): New helper function.
        * gigi.h (build_return_expr): Declare it.
        * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
        of manually building the RETURN_EXPR tree.
        (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
        (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
        build_binary_op for the "target pointer" case. ?Use build_return_expr
        instead of manually building the RETURN_EXPR tree.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.638.4.16&r2=1.638.4.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/utils2.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.44.6.1&r2=1.44.6.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/gigi.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.33.10.1&r2=1.33.10.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/trans.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.90.6.3&r2=1.90.6.4


-- 


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


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