OpenBSD bug-fix

Marc Espie espie@tetto.liafa.jussieu.fr
Fri Aug 27 10:21:00 GMT 1999


I actually took out SET_ASM_OP because I didn't find what purpose
it served...

Well, I finally know better.

Jeff, *please* add this to the 2.95 as well, in case there are further
releases pending.

Fri Aug 27 19:19:43 CEST 1999	Marc Espie <espie@cvs.openbsd.org>
	* config/openbsd.h: define SET_ASM_OP so that __attribute__((alias))
	may work.
--- gcc/config/openbsd.h.orig	Thu Aug 26 22:30:52 1999
+++ gcc/config/openbsd.h	Thu Aug 26 22:31:37 1999
@@ -165,13 +165,16 @@
 
 /* OpenBSD assembler is hacked to have .type & .size support even in a.out
    format object files.  Functions size are supported but not activated 
-   yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c).  */
+   yet (look for GRACE_PERIOD_EXPIRED in gas/config/obj-aout.c).  
+   SET_ASM_OP is needed for attribute alias to work.  */
 
 #undef TYPE_ASM_OP
 #undef SIZE_ASM_OP
+#undef SET_ASM_OP
 
 #define TYPE_ASM_OP	".type"
 #define SIZE_ASM_OP	".size"
+#define SET_ASM_OP	".set"
 
 /* The following macro defines the format used to output the second
    operand of the .type assembler directive.  */


More information about the Gcc-patches mailing list