diff options
author | Daniel Richard G. <skunk@iskunk.org> | 2015-02-16 15:19:20 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2015-02-16 10:19:20 -0500 |
commit | 266c722fafc54178f854179003260053b11d00a3 (patch) | |
tree | ee8cb94c1404f1fffda9dbb9b5a262cae72d1129 /fixincludes/inclhack.def | |
parent | 2d4df88383829724b4bfcce7aff13ad8662e182a (diff) |
Daniel Richard G.
Daniel Richard G. <skunk@iskunk.org>
PR bootstrap/48009
PR bootstrap/53348
* inclhack.def (aix_strtof_const): New fix.
* fixincl.x: Regenerate.
* tests/base/inttypes.h: New test.
From-SVN: r220736
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index ce9a2ca6b4c..5e906f4c1ac 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -842,6 +842,18 @@ fix = { }; /* + * stdlib.h on AIX 4.3 declares strtof() with a non-const first argument. + */ +fix = { + hackname = aix_strtof_const; + files = stdlib.h; + select = "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);"; + c_fix = format; + c_fix_arg = "%1(const char *, char **);"; + test_text = "extern float strtof(char *, char **);"; +}; + +/* * sys/machine.h on AIX 4.3.3 puts whitespace between a \ and a newline * in an otherwise harmless (and #ifed out) macro definition */ |