Patchwork fix darwin boostrap breakage

login
register
mail settings
Submitter Mike Stump
Date June 16, 2011, 7:39 p.m.
Message ID <2A5A4F16-27E8-4F4F-A4E5-0E5CD40F9D30@comcast.net>
Download mbox | patch
Permalink /patch/100690/
State New
Headers show

Comments

Mike Stump - June 16, 2011, 7:39 p.m.
RIght now darwin doesn't build for me (something for goolge to find):

Undefined symbols:
  "LPR2", referenced from:
      ___mulsc3 in _mulsc3_s.o
      ___muldc3 in _muldc3_s.o
      ___mulxc3 in _mulxc3_s.o


I think it is due to a updated macports bit that I've not tracked down.  :-(

I've not seen the build failure this fixes, but others have, so I'm applying it.  I've built cc1, which is the most I can do right now.

2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>

	* config/darwin-protos.h (machopic_select_rtx_section): Move to
	inside RTX_CODE ifdef.
2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>

	* config/darwin-protos.h (machopic_select_rtx_section): Move to
	inside RTX_CODE ifdef.
Jack Howarth - June 16, 2011, 7:53 p.m.
On Thu, Jun 16, 2011 at 12:39:44PM -0700, Mike Stump wrote:
> RIght now darwin doesn't build for me (something for goolge to find):
> 
> Undefined symbols:
>   "LPR2", referenced from:
>       ___mulsc3 in _mulsc3_s.o
>       ___muldc3 in _muldc3_s.o
>       ___mulxc3 in _mulxc3_s.o
> 
> 
> I think it is due to a updated macports bit that I've not tracked down.  :-(

You didn't do anything nutty like install binutils ;)?

> 
> I've not seen the build failure this fixes, but others have, so I'm applying it.  I've built cc1, which is the most I can do right now.
> 
> 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
> 
> 	* config/darwin-protos.h (machopic_select_rtx_section): Move to
> 	inside RTX_CODE ifdef.
> 

> 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
> 
> 	* config/darwin-protos.h (machopic_select_rtx_section): Move to
> 	inside RTX_CODE ifdef.
> 
> Index: config/darwin-protos.h
> ===================================================================
> --- config/darwin-protos.h	(revision 175089)
> +++ config/darwin-protos.h	(working copy)
> @@ -40,6 +40,8 @@ extern rtx machopic_legitimize_pic_addre
>  
>  extern void machopic_asm_out_constructor (rtx, int);
>  extern void machopic_asm_out_destructor (rtx, int);
> +extern section *machopic_select_rtx_section (enum machine_mode, rtx,
> +					     unsigned HOST_WIDE_INT);
>  #endif /* RTX_CODE */
>  
>  #ifdef TREE_CODE
> @@ -54,8 +56,6 @@ extern void machopic_finish (FILE *);
>  
>  extern int machopic_reloc_rw_mask (void);
>  extern section *machopic_select_section (tree, int, unsigned HOST_WIDE_INT);
> -extern section *machopic_select_rtx_section (enum machine_mode, rtx,
> -					     unsigned HOST_WIDE_INT);
>  
>  extern section *darwin_function_section (tree, enum node_frequency, bool, bool); 
>  extern void darwin_function_switched_text_sections (FILE *, tree, bool);
Mike Stump - June 16, 2011, 8:49 p.m.
On Jun 16, 2011, at 12:39 PM, Mike Stump wrote:
> RIght now darwin doesn't build for me (something for goolge to find):
> 
> Undefined symbols:
>  "LPR2", referenced from:
>      ___mulsc3 in _mulsc3_s.o
>      ___muldc3 in _muldc3_s.o
>      ___mulxc3 in _mulxc3_s.o

Found it, rm -rf `find . -name  autom4te.cache` in the source tree solves it.  :-(  You know, rm -rf the build is obvious and anyone can do that, by rm -rf the source tree is, well, anti-solcial.

Patch

Index: config/darwin-protos.h
===================================================================
--- config/darwin-protos.h	(revision 175089)
+++ config/darwin-protos.h	(working copy)
@@ -40,6 +40,8 @@  extern rtx machopic_legitimize_pic_addre
 
 extern void machopic_asm_out_constructor (rtx, int);
 extern void machopic_asm_out_destructor (rtx, int);
+extern section *machopic_select_rtx_section (enum machine_mode, rtx,
+					     unsigned HOST_WIDE_INT);
 #endif /* RTX_CODE */
 
 #ifdef TREE_CODE
@@ -54,8 +56,6 @@  extern void machopic_finish (FILE *);
 
 extern int machopic_reloc_rw_mask (void);
 extern section *machopic_select_section (tree, int, unsigned HOST_WIDE_INT);
-extern section *machopic_select_rtx_section (enum machine_mode, rtx,
-					     unsigned HOST_WIDE_INT);
 
 extern section *darwin_function_section (tree, enum node_frequency, bool, bool); 
 extern void darwin_function_switched_text_sections (FILE *, tree, bool);