From: David Edelsohn Date: Fri, 29 Sep 2000 17:47:32 +0000 (+0000) Subject: inclhack.def (broken_cabs): Generalize regex. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1c63101c48412ffcac56f9c4bb32383f86c3c32;p=gcc.git inclhack.def (broken_cabs): Generalize regex. * fixinc/inclhack.def (broken_cabs): Generalize regex. * fixinc/fixincl.x: Regenerate. From-SVN: r36669 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86baeccd6ba..a0aae79343a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-09-29 David Edelsohn + + * fixinc/inclhack.def (broken_cabs): Generalize regex. + * fixinc/fixincl.x: Regenerate. + 2000-09-29 Franz Sirl * loop.c (check_final_value): A GIV is not replaceable if used diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x index 4fe9d9ddf76..c22608163f9 100644 --- a/gcc/fixinc/fixincl.x +++ b/gcc/fixinc/fixincl.x @@ -1510,7 +1510,7 @@ tSCC zBroken_CabsList[] = * content selection pattern - do fix if pattern found */ tSCC zBroken_CabsSelect0[] = - "^extern double cabs"; + "^extern[ \\t]+double[ \\t]+cabs"; #define BROKEN_CABS_TEST_CT 1 static tTestDesc aBroken_CabsTests[] = { @@ -1522,7 +1522,7 @@ static tTestDesc aBroken_CabsTests[] = { static const char* apzBroken_CabsPatch[] = { "format", "", - "^extern double cabs\\((struct dbl_hypot|)\\);", + "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index d3e52024eff..c5f9bdce68b 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -883,16 +883,16 @@ fix = { fix = { hackname = broken_cabs; files = "math.h"; - select = '^extern double cabs'; + select = '^extern[ \t]+double[ \t]+cabs'; c_fix = format; c_fix_arg = ""; - c_fix_arg = "^extern double cabs\\((struct dbl_hypot|)\\);"; + c_fix_arg = "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);"; test_text = "#ifdef __STDC__\n" - "extern double cabs(struct dbl_hypot);\n" + "extern double cabs(struct dbl_hypot);\n" "#else\n" - "extern double cabs();\n" + "extern double cabs();\n" "#endif\n" "extern double cabs(); /* This is a comment\n" " and it ends here. */";