This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48461] [4.7 Regression] function.c:5268:1: error: emit_use_return_register_into_block defined but not used
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 5 Apr 2011 16:01:25 +0000
- Subject: [Bug middle-end/48461] [4.7 Regression] function.c:5268:1: error: emit_use_return_register_into_block defined but not used
- Auto-submitted: auto-generated
- References: <bug-48461-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48461
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #2 from vries at gcc dot gnu.org 2011-04-05 16:01:17 UTC ---
The function emit_use_return_register_into_block is only used in code guarded
with HAVE_return, and therefore the definition of
emit_use_return_register_into_block should also be guarded with HAVE_return.
Failing to do this caused the error mentioned in the description field.
This is fixed by the check-in in comment 1.