This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] Split two .section directives into separate asm statements
- From: Fred Fish <fnf at intrinsity dot com>
- To: newlib at sources dot redhat dot com
- Cc: fnf at intrinsity dot com
- Date: Mon, 9 Sep 2002 19:32:04 -0500 (CDT)
- Subject: [PATCH] Split two .section directives into separate asm statements
- Reply-to: fnf at intrinsity dot com
While trying to build a mipsisa32-elf toolchain the assembler chokes
on the asm emitted by __make_section_allocated. This patch fixes it.
-Fred
2002-08-31 Fred Fish <fnf@intrinsity.com>
* libnosys/warning.h (__make_section_unallocated): Use
two asm functions, not one with two separate pseudos.
The current mips assembler chokes on that.
Index: libnosys/warning.h
===================================================================
RCS file: /mips/newtools/redhat/newlib/libgloss/libnosys/warning.h,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -c -p -r1.1.1.2 -r1.2
*** libnosys/warning.h 2002/07/02 13:32:19 1.1.1.2
--- libnosys/warning.h 2002/08/31 05:58:52 1.2
***************
*** 7,13 ****
/* We want the .gnu.warning.SYMBOL section to be unallocated. */
# ifdef HAVE_ASM_PREVIOUS_DIRECTIVE
# define __make_section_unallocated(section_string) \
! asm(".section " section_string "; .previous");
# elif defined (HAVE_ASM_POPSECTION_DIRECTIVE)
# define __make_section_unallocated(section_string) \
asm(".pushsection " section_string "; .popsection");
--- 7,13 ----
/* We want the .gnu.warning.SYMBOL section to be unallocated. */
# ifdef HAVE_ASM_PREVIOUS_DIRECTIVE
# define __make_section_unallocated(section_string) \
! asm(".section " section_string); asm(".previous");
# elif defined (HAVE_ASM_POPSECTION_DIRECTIVE)
# define __make_section_unallocated(section_string) \
asm(".pushsection " section_string "; .popsection");