mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-16 20:49:52 +08:00
inclhack.def (broken_cabs): Generalize regex.
* fixinc/inclhack.def (broken_cabs): Generalize regex. * fixinc/fixincl.x: Regenerate. From-SVN: r36669
This commit is contained in:
parent
70dd0f7f41
commit
a1c63101c4
@ -1,3 +1,8 @@
|
||||
2000-09-29 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
* fixinc/inclhack.def (broken_cabs): Generalize regex.
|
||||
* fixinc/fixincl.x: Regenerate.
|
||||
|
||||
2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
|
||||
|
||||
* loop.c (check_final_value): A GIV is not replaceable if used
|
||||
|
@ -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 };
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
|
@ -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. */";
|
||||
|
Loading…
Reference in New Issue
Block a user