aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorBruce Korb <korbb@gcc.gnu.org>2003-10-25 17:43:13 +0000
committerBruce Korb <korbb@gcc.gnu.org>2003-10-25 17:43:13 +0000
commit11f9a0ed8f5cdd0214075bc8501a91c06a835d2a (patch)
tree1850a9e037b81193d4b4d75438d690aa1160fc96 /gcc/fixinc
parentbd18496b13ccdc78ab2ee5778583aa04af36308b (diff)
downloadgcc-11f9a0ed8f5cdd0214075bc8501a91c06a835d2a.zip
gcc-11f9a0ed8f5cdd0214075bc8501a91c06a835d2a.tar.gz
gcc-11f9a0ed8f5cdd0214075bc8501a91c06a835d2a.tar.bz2
snprintf alphabetically precedes uint
From-SVN: r72928
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/fixincl.x86
-rw-r--r--gcc/fixinc/inclhack.def38
2 files changed, 62 insertions, 62 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index 5aa85b2..08e2959 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed Wednesday October 22, 2003 at 10:23:00 PM UTC
+ * It has been AutoGen-ed Saturday October 25, 2003 at 10:36:26 AM PDT
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT CVS-MERGE THIS FILE, EITHER Wed Oct 22 22:23:00 UTC 2003
+/* DO NOT CVS-MERGE THIS FILE, EITHER Sat Oct 25 10:36:26 PDT 2003
*
* You must regenerate it. Use the ./genfixes script.
*
@@ -2070,6 +2070,41 @@ static const char* apzHpux11_Size_TPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
+ * Description of Hpux11_Snprintf fix
+ */
+tSCC zHpux11_SnprintfName[] =
+ "hpux11_snprintf";
+
+/*
+ * File name selection pattern
+ */
+tSCC zHpux11_SnprintfList[] =
+ "|stdio.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+#define apzHpux11_SnprintfMachs (const char**)NULL
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zHpux11_SnprintfSelect0[] =
+ "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
+
+#define HPUX11_SNPRINTF_TEST_CT 1
+static tTestDesc aHpux11_SnprintfTests[] = {
+ { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Hpux11_Snprintf
+ */
+static const char* apzHpux11_SnprintfPatch[] = {
+ "format",
+ "%1 const %3",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
* Description of Hpux11_Uint32_C fix
*/
tSCC zHpux11_Uint32_CName[] =
@@ -2140,41 +2175,6 @@ static const char* apzHpux11_VsnprintfPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
- * Description of Hpux11_Snprintf fix
- */
-tSCC zHpux11_SnprintfName[] =
- "hpux11_snprintf";
-
-/*
- * File name selection pattern
- */
-tSCC zHpux11_SnprintfList[] =
- "|stdio.h|";
-/*
- * Machine/OS name selection pattern
- */
-#define apzHpux11_SnprintfMachs (const char**)NULL
-
-/*
- * content selection pattern - do fix if pattern found
- */
-tSCC zHpux11_SnprintfSelect0[] =
- "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
-
-#define HPUX11_SNPRINTF_TEST_CT 1
-static tTestDesc aHpux11_SnprintfTests[] = {
- { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
-
-/*
- * Fix Command Arguments for Hpux11_Snprintf
- */
-static const char* apzHpux11_SnprintfPatch[] = {
- "format",
- "%1 const %3",
- (char*)NULL };
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * *
- *
* Description of Hpux8_Bogus_Inlines fix
*/
tSCC zHpux8_Bogus_InlinesName[] =
@@ -6435,9 +6435,9 @@ typedef enum {
HPUX11_ABS_FIXIDX,
HPUX11_FABSF_FIXIDX,
HPUX11_SIZE_T_FIXIDX,
+ HPUX11_SNPRINTF_FIXIDX,
HPUX11_UINT32_C_FIXIDX,
HPUX11_VSNPRINTF_FIXIDX,
- HPUX11_SNPRINTF_FIXIDX,
HPUX8_BOGUS_INLINES_FIXIDX,
HPUX_CTYPE_MACROS_FIXIDX,
HPUX_LONG_DOUBLE_FIXIDX,
@@ -6791,6 +6791,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
+ { zHpux11_SnprintfName, zHpux11_SnprintfList,
+ apzHpux11_SnprintfMachs,
+ HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
+
{ zHpux11_Uint32_CName, zHpux11_Uint32_CList,
apzHpux11_Uint32_CMachs,
HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
@@ -6801,11 +6806,6 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
- { zHpux11_SnprintfName, zHpux11_SnprintfList,
- apzHpux11_SnprintfMachs,
- HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
- aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
-
{ zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
apzHpux8_Bogus_InlinesMachs,
HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index 2f285f5..432d016 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -1211,6 +1211,25 @@ fix = {
/*
+ * Fix hpux 11.00 broken snprintf declaration
+ * (third argument is char *, needs to be const char * to prevent
+ * spurious warnings with -Wwrite-strings or in C++).
+ */
+fix = {
+ hackname = hpux11_snprintf;
+ files = stdio.h;
+ select = '(extern int snprintf *\(char *\*, *(|__|_hpux_)size_t,)'
+ ' *(char *\*, *\.\.\.\);)';
+ c_fix = format;
+ c_fix_arg = '%1 const %3';
+
+ test_text = "extern int snprintf(char *, size_t, char *, ...);\n"
+ "extern int snprintf(char *, __size_t, char *, ...);\n"
+ "extern int snprintf(char *, _hpux_size_t, char *, ...);";
+};
+
+
+/*
* In inttypes.h on HPUX 11, the use of __CONCAT__ in the definition
* of UINT32_C has undefined behavior according to ISO/ANSI:
* the arguments to __CONCAT__ are not macro expanded before the
@@ -1255,25 +1274,6 @@ fix = {
/*
- * Fix hpux 11.00 broken snprintf declaration
- * (third argument is char *, needs to be const char * to prevent
- * spurious warnings with -Wwrite-strings or in C++).
- */
-fix = {
- hackname = hpux11_snprintf;
- files = stdio.h;
- select = '(extern int snprintf *\(char *\*, *(|__|_hpux_)size_t,)'
- ' *(char *\*, *\.\.\.\);)';
- c_fix = format;
- c_fix_arg = '%1 const %3';
-
- test_text = "extern int snprintf(char *, size_t, char *, ...);\n"
- "extern int snprintf(char *, __size_t, char *, ...);\n"
- "extern int snprintf(char *, _hpux_size_t, char *, ...);";
-};
-
-
-/*
* get rid of bogus inline definitions in HP-UX 8.0
*/
fix = {