This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: rs6000_handle_option global state avoidance, part 1
On Fri, 6 May 2011, Alan Modra wrote:
> On Thu, May 05, 2011 at 11:29:13AM -0400, David Edelsohn wrote:
> > Alan, is mcmodel suppose to set m64?
>
> No, that was an accident.
Thanks. I'll apply this patch to remove that fall through. Tested
building cc1 and xgcc for cross to powerpc64-linux-gnu.
2011-05-06 Joseph Myers <joseph@codesourcery.com>
* config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
fall through for OPT_mcmodel_.
Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c (revision 173434)
+++ gcc/config/rs6000/rs6000.c (working copy)
@@ -4214,11 +4214,6 @@ rs6000_handle_option (struct gcc_options
break;
#endif
-#if defined (HAVE_LD_LARGE_TOC) && defined (TARGET_USES_LINUX64_OPT)
- case OPT_mcmodel_:
- /* Fall through. */
-#endif
-
#ifdef TARGET_USES_AIX64_OPT
case OPT_maix64:
#else
--
Joseph S. Myers
joseph@codesourcery.com