diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-16 15:19:20 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-16 15:19:20 +0000 |
commit | 7a26bedcea08dc52f4abf3e7c7724140dc1511cf (patch) | |
tree | ee8cb94c1404f1fffda9dbb9b5a262cae72d1129 /fixincludes/inclhack.def | |
parent | 17953d13ddefbf87d6e52ad1e728b823e211f231 (diff) | |
download | gcc-7a26bedcea08dc52f4abf3e7c7724140dc1511cf.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220736 138bc75d-0d04-0410-961f-82ee72b054a4
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 */ |