HPUX 11 "size_t" fixinc problems
John David Anglin
dave@hiauly1.hia.nrc.ca
Sat Dec 1 11:48:00 GMT 2001
> > I guess the ``__va__list'' will protect my system.
>
> An underscore could be added before "size_t" in the select for additional
> protection.
I have run this through complete bootstraps and checks on hppa2.0w-hp-hpux11.00
and hppa2.0w-hp-hpux11.11 with no regressions.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-12-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
* inclhack.def (AAA_time): Delete.
(hpux_size_t): Revise select and fix for HP-UX 11.11.
(hpux11_vsnprintf): Likewise.
--- inclhack.def.orig Thu Sep 13 12:05:12 2001
+++ inclhack.def Fri Nov 30 15:53:00 2001
@@ -94,16 +94,6 @@
};
-/*
- * Purge some HP-UX 11 files that are only broken after they are "fixed".
- */
-fix = {
- hackname = AAA_time;
- files = sys/time.h;
- select = '11.0 and later representation of ki time';
- replace; /* empty replacement -> no fixing the file */
-};
-
/* And now, the real fixes, replacement text fixes first: */
/*
@@ -1222,12 +1212,11 @@
*/
fix = {
hackname = hpux11_size_t;
- mach = "*-hp-hpux*";
- select = "^#define __size_t size_t";
+ mach = "*-hp-hpux11*";
+ select = "__size_t";
c_fix = format;
c_fix_arg = "_hpux_size_t";
- c_fix_arg = "__size_t";
test_text =
"#define __size_t size_t\n"
@@ -1264,17 +1253,17 @@
/*
- * Fix hpux 11.00 broken vsnprintf declaration
+ * Fix hpux 11.00 broken vsnprintf declaration.
*/
fix = {
hackname = hpux11_vsnprintf;
files = stdio.h;
- select = 'extern int vsnprintf\(char \*, __size_t, const char \*,'
+ select = 'extern int vsnprintf\(char \*, .*_size_t, const char \*,'
' __va__list\);';
c_fix = format;
- c_fix_arg = "extern int vsnprintf(char *, __size_t, const char *,"
- " __va_list);";
+ c_fix_arg = __va_list;
+ c_fix_arg = __va__list;
test_text = 'extern int vsnprintf(char *, __size_t, const char *,'
' __va__list);';
More information about the Gcc-patches
mailing list