diff options
author | Bruce Korb <bkorb@gnu.org> | 2009-08-28 19:42:41 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2009-08-28 19:42:41 +0000 |
commit | 0b7da9ce03450658dfe2dd769512cdec27ed8f62 (patch) | |
tree | c7f6efcdc69d033e8a43502b2ec8d4f6fb38512b /fixincludes/inclhack.def | |
parent | 81fa17dad100dceb1f75a10891df9643bf32d7ca (diff) | |
download | gcc-0b7da9ce03450658dfe2dd769512cdec27ed8f62.tar.gz |
README (files): Describe files entry.
2009-08-28 Bruce Korb <bkorb@gnu.org>
Steve Ellcey <sje@cup.hp.com>
* README (files): Describe files entry.
* inclhack.def (hpux_stdint_least): Remove.
(hpux_stdint_fast): Remove.
(hpux_stdint_fast): Remove.
(hpux_stdint_least_fast): New.
(hpux_inttype_int_least8_t): Remove.
(hpux_inttype_int8_t): Modify.
* fixincl.x: Regenerate.
* tests/base/stdint.h: Update.
* tests/base/sys/_inttypes.h: Update.
Co-Authored-By: Steve Ellcey <sje@cup.hp.com>
From-SVN: r151178
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index c43ac852c47..f118260f2ca 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -2190,43 +2190,34 @@ fix = { }; fix = { - hackname = hpux_stdint_least; + hackname = hpux_stdint_least_fast; mach = "*-hp-hpux11.2*"; files = stdint.h; - select = "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX"; - c_fix = format; - c_fix_arg = "#ifdef __LP64__\n# define UINT_LEAST64_MAX ULONG_MAX\n#else\n%0\n#endif\n"; - test_text ="# define UINT_LEAST64_MAX ULLONG_MAX\n"; -}; - -fix = { - hackname = hpux_stdint_fast; - mach = "*-hp-hpux11.2*"; - files = stdint.h; - select = "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX"; - c_fix = format; - c_fix_arg = "#ifdef __LP64__\n# define UINT_FAST64_MAX ULONG_MAX\n#else\n%0\n#endif\n"; - test_text ="# define UINT_FAST64_MAX ULLONG_MAX\n"; -}; - -fix = { - hackname = hpux_inttype_int_least8_t; - mach = "*-hp-hpux1[01].*"; - files = sys/_inttypes.h; - select = "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*"; + select = + "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX"; c_fix = format; - c_fix_arg = "typedef signed char int_least8_t;"; - test_text ="typedef char int_least8_t;\n"; + c-fix-arg = <<- _EOFix_ + #ifdef __LP64__ + # define UINT_%164_MAX ULONG_MAX + #else + %0 + #endif + _EOFix_; + test-text = <<- _EOFix_ + # define UINT_FAST64_MAX ULLONG_MAX + # define UINT_LEAST64_MAX ULLONG_MAX + _EOFix_; }; fix = { hackname = hpux_inttype_int8_t; mach = "*-hp-hpux1[01].*"; files = sys/_inttypes.h; - select = "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*"; + select = "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*"; c_fix = format; - c_fix_arg = "typedef signed char int8_t;"; - test_text ="typedef char int8_t;\n"; + c_fix_arg = "typedef signed char int%18_t;"; + test_text = "typedef char int_least8_t;\n" + "typedef char int8_t;\n"; }; fix = { |