summaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-14 23:59:48 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-14 23:59:48 +0000
commit19754f2bc5c13782e2a7c5065bfede9299f723f6 (patch)
treefd1048b792f897e82eb68a18af704ad9417bd01b /fixincludes/inclhack.def
parent58841df845bd3af33863522070a28bce87ac3e37 (diff)
downloadgcc-19754f2bc5c13782e2a7c5065bfede9299f723f6.tar.gz
PR libfortran/15266
* inclhack.def (broken_cabs): Mention IRIX 5/6 problem. Use double quotes in select so \t matches tabs. Add IRIX testcase. * fixincl.x: Regenerate. * tests/base/math.h [BROKEN_CABS_CHECK]: Adapt for new testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100960 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def7
1 files changed, 5 insertions, 2 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 447997b14fb..798e8bcb207 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -907,6 +907,8 @@ fix = {
/*
* Remove `extern double cabs' declarations from math.h.
* This conflicts with C99. Discovered on AIX.
+ * IRIX 5 and IRIX 6 before 6.5.18 (where C99 support was introduced)
+ * declares cabs() to take a struct __cabs_s argument.
* SunOS4 has its cabs() declaration followed by a comment which
* terminates on the following line.
* Darwin hides its broken cabs in architecture-specific subdirs.
@@ -916,7 +918,7 @@ fix = {
files = "math.h";
files = "architecture/ppc/math.h";
files = "architecture/i386/math.h";
- select = '^extern[ \t]+double[ \t]+cabs';
+ select = "^extern[ \t]+double[ \t]+cabs";
c_fix = format;
c_fix_arg = "";
@@ -929,7 +931,8 @@ fix = {
"#endif\n"
"extern double cabs ( _Complex z );\n"
"extern double cabs(); /* This is a comment\n"
- " and it ends here. */";
+ " and it ends here. */\n"
+ "extern double cabs(struct __cabs_s);";
};