This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/50836] [4.7 regression] bootstrap fails due to error: no previous prototype for 'find_all_hard_reg_sets'
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 23 Oct 2011 12:34:09 +0000
- Subject: [Bug bootstrap/50836] [4.7 regression] bootstrap fails due to error: no previous prototype for 'find_all_hard_reg_sets'
- Auto-submitted: auto-generated
- References: <bug-50836-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50836
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernds at gcc dot gnu.org
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-10-23 12:34:09 UTC ---
The same error also occurs on sparc64-linux and arm-linux-gnueabi. It's caused
by r180302:
http://gcc.gnu.org/ml/gcc-cvs/2011-10/msg00898.html
find_all_hard_reg_sets does have a prototype in rtl.h, but it's conditional on
#ifdef HARD_CONST. Deleting the #ifdef causes build errors, but changing the
include order in rtlanal.c so that hard-reg-set.h is included before rtl.h
solves the bootstrap problem.