[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread redi at gcc dot gnu dot org
--- Comment #9 from redi at gcc dot gnu dot org 2010-07-06 13:21 --- then that's a bug in rawstudio, the relevant doc is http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44837

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread l dot jirkovsky at gmail dot com
--- Comment #8 from l dot jirkovsky at gmail dot com 2010-07-06 13:12 --- BTW: thank you for enlightening me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44837

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread l dot jirkovsky at gmail dot com
--- Comment #7 from l dot jirkovsky at gmail dot com 2010-07-06 13:11 --- Oh, sorry. It was a part of source from rawstudio which used to work correctly but since update to gcc 4.5.0 compilation fails. It took me some time to find where the problem is and I found this. -- http://g

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-07-06 13:03 --- Also, I don't think the change you're seeing can be from GCC, since unconditionally does #undef __USE_GNU Did you upgrade glibc at the same time as gcc? In any case, you should use the documented interface, not __USE_

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-07-06 12:58 --- You're not supposed to define __USE_GNU yourself, see The macro you should define is _GNU_SOURCE, which causes glibc to define __USE_GNU -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44837

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread l dot jirkovsky at gmail dot com
--- Comment #4 from l dot jirkovsky at gmail dot com 2010-07-06 12:55 --- The strange thing is that when I copy the problematic part (even with __USE_GNU) to a different file it works. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44837

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread l dot jirkovsky at gmail dot com
--- Comment #3 from l dot jirkovsky at gmail dot com 2010-07-06 12:53 --- Created an attachment (id=21105) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21105&action=view) preprocessed file missing __USE_GNU parts from ucontext.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread l dot jirkovsky at gmail dot com
--- Comment #2 from l dot jirkovsky at gmail dot com 2010-07-06 12:52 --- Created an attachment (id=21104) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21104&action=view) ucontext.h from my system -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44837

[Bug preprocessor/44837] [4.5 regression?] strange #define behavior

2010-07-06 Thread l dot jirkovsky at gmail dot com
--- Comment #1 from l dot jirkovsky at gmail dot com 2010-07-06 12:51 --- Created an attachment (id=21103) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21103&action=view) test file using definitions from the -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44837