[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] [PATCH] Avoid gcc warning on Stratus OpenVOS building re
From: |
Green, Paul |
Subject: |
[bug-diffutils] [PATCH] Avoid gcc warning on Stratus OpenVOS building regex.c |
Date: |
Wed, 17 Aug 2011 16:19:31 -0400 |
Gentle Diffutils Maintainers,
The Stratus OpenVOS port of gcc does not allow use of the regparm
attribute. The following patch to regex_internal.h eliminates a series
of warning messages when building lib/regex.c. This patch is against the
newly-released diffutils-3.1 files. With this patch in place, diffutils
builds without warnings or errors on OpenVOS Release 17.1.
diff -u regex_internal.h.orig regex_internal.h
--- regex_internal.h.orig 2011-04-20 18:24:34.000000000 -0400
+++ regex_internal.h 2011-08-17 15:36:26.000000000 -0400
@@ -417,7 +417,7 @@
typedef struct re_dfa_t re_dfa_t;
#ifndef _LIBC
-# if defined __i386__ && !defined __EMX__
+# if defined __i386__ && !defined __EMX__ && !defined __VOS__
# define internal_function __attribute ((regparm (3), stdcall))
# else
# define internal_function
Thanks
PG
--
Sr. Technical Consultant, Stratus Technologies Inc.
Work: +1-978-461-7557; FAX: +1-978-461-3610; Twitter: stratuspaulg
- [bug-diffutils] [PATCH] Avoid gcc warning on Stratus OpenVOS building regex.c,
Green, Paul <=