forked from iains/gcc-14-branch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re PR c++/46401 (very slow compile time with -Wsequence-point)
PR c++/46401 * c-common.c (warning_candidate_p): Don't track non-const calls or STRING_CSTs. * g++.dg/warn/Wsequence-point-3.C: New test. From-SVN: r166823
- Loading branch information
1 parent
18c33e0
commit 0707866
Showing
4 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2010-11-16 Jakub Jelinek <[email protected]> | ||
|
||
PR c++/46401 | ||
* c-common.c (warning_candidate_p): Don't track non-const calls | ||
or STRING_CSTs. | ||
|
||
2010-11-15 Ian Lance Taylor <[email protected]> | ||
|
||
* c-lex.c (init_c_lex): Set macro debug callbacks if | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2010-11-16 Jakub Jelinek <[email protected]> | ||
|
||
PR c++/46401 | ||
* g++.dg/warn/Wsequence-point-3.C: New test. | ||
|
||
2010-11-16 Kai Tietz <[email protected]> | ||
|
||
PR preprocessor/17349 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// PR c++/46401 | ||
// { dg-do compile } | ||
// { dg-options "-Wsequence-point" } | ||
|
||
struct S | ||
{ | ||
S (); | ||
S &operator<< (const char *); | ||
S (const S &); | ||
}; | ||
|
||
#define N1(n) << #n | ||
#define N2(n) N1(n) | ||
#define N3(n) N2(n##0) N2(n##1) N2(n##2) N2(n##3) N2(n##4) \ | ||
N2(n##5) N2(n##6) N2(n##7) N2(n##8) N2(n##9) | ||
#define N4(n) N3(n##0) N3(n##1) N3(n##2) N3(n##3) N3(n##4) \ | ||
N3(n##5) N3(n##6) N3(n##7) N3(n##8) N3(n##9) | ||
#define N5(n) N4(n##0) N4(n##1) N4(n##2) N4(n##3) N4(n##4) \ | ||
N4(n##5) N4(n##6) N4(n##7) N4(n##8) N4(n##9) | ||
S s = S () N5(a) N5(b); |