Bug 36130 - Atomics regression test fail to compile when parallel mode is enabled
Summary: Atomics regression test fail to compile when parallel mode is enabled
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.4.0
Assignee: Benjamin Kosnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-05 11:38 UTC by Johannes Singler
Modified: 2008-07-10 03:01 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2008-05-06 03:11:46


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Singler 2008-05-05 11:38:29 UTC
"make check-parallel" makes the following regression tests with respect to the atomics library fail:

FAIL: 29_atomics/atomic_flag/test_and_set/explicit.c (test for excess errors)
WARNING: 29_atomics/atomic_flag/test_and_set/explicit.c compilation failed to produce executable
FAIL: 29_atomics/atomic_flag/test_and_set/implicit.c (test for excess errors)
WARNING: 29_atomics/atomic_flag/test_and_set/implicit.c compilation failed to produce executable
FAIL: 29_atomics/headers/stdatomic.h/functions.c (test for excess errors)
FAIL: 29_atomics/headers/stdatomic.h/macros.c (test for excess errors)
FAIL: 29_atomics/headers/stdatomic.h/types.c (test for excess errors)

x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/c++config.h:190: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'

None of these appear for "make check".
I suspect that there is a problem with all the namespaces.
Comment 1 Benjamin Kosnik 2008-05-06 03:11:46 UTC
These are all failures in "C" mode, and are due to running into C++ constructs like the keyword "namespace." 
Comment 2 Benjamin Kosnik 2008-05-06 18:58:31 UTC
Subject: Bug 36130

Author: bkoz
Date: Tue May  6 18:57:46 2008
New Revision: 134995

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134995
Log:
2008-05-06  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/36130
	* include/bits/c++config: Namespace macros and setup only in C++.
	* testsuite/29_atomics/headers/stdatomic.h/debug_mode.c: New.



Added:
    trunk/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/debug_mode.c
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/c++config

Comment 3 Benjamin Kosnik 2008-07-10 03:01:46 UTC
fixed