Bug 33700 - FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)
Summary: FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 18:15 UTC by John David Anglin
Modified: 2007-10-14 22:25 UTC (History)
3 users (show)

See Also:
Host: hppa64-hp-hpux11.11
Target: hppa64-hp-hpux11.11
Build: hppa64-hp-hpux11.11
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2007-10-08 18:15:52 UTC
Executing on host: /test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc -B/test/gnu/gcc
/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v
3/src -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/g
nu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-4.3.0/hppa64-hp
-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/include -i
system /opt/gnu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/sys-include -g -O2 -D_GLIBCX
X_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2 -g -O2
-DLOCALEDIR="." -nostdinc++ -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++
-v3/include/hppa64-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libst
dc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/test/gnu/gcc/gcc/l
ibstdc++-v3/include/backward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util /te
st/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/all_pedantic_errors.cc
-pedantic-errors -S  -o all_pedantic_errors.s    (timeout = 600)
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/ext/bitmap_allocator.h:43,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:115:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/concurrence.h:
158:30: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/concurrence.h:
281:29: error: use of C99 long long integer constant
In file included from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:126:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:443:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:443:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:538:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:538:36: error: use of C99 long long integer constant
In file included from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:132:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/rope:453:33: e
rror: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/rope:594:33: e
rror: use of C99 long long integer constant
compiler exited with status 1
output is:
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/ext/bitmap_allocator.h:43,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:115:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/concurrence.h:
158:30: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/concurrence.h:
281:29: error: use of C99 long long integer constant
In file included from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:126:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:443:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:443:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:538:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:538:36: error: use of C99 long long integer constant
In file included from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:132:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/rope:453:33: e
rror: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/rope:594:33: e
rror: use of C99 long long integer constant

FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)
Excess errors:
In file included from /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/incl
ude/ext/bitmap_allocator.h:43,
                 from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:115:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/concurrence.h:
158:30: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/concurrence.h:
281:29: error: use of C99 long long integer constant
In file included from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:126:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:443:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:443:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:538:36: error: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/mt_allocator.h
:538:36: error: use of C99 long long integer constant
In file included from /test/gnu/gcc/gcc/libstdc++-v3/testsuite/17_intro/headers/
all_pedantic_errors.cc:132:
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/rope:453:33: e
rror: use of C99 long long integer constant
/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ext/rope:594:33: e
rror: use of C99 long long integer constant

extra_tool_flags are:
  -include bits/stdc++.h

#ifdef __LP64__
#define __MPOINTER              void    *m_ptr
#define __POINTER_SET           ((void *) 1LL)
#else
#define __MPOINTER              int     m_pad; \
                                void    *m_ptr
#define __POINTER_SET           0, ((void *) 1L)
#endif

struct pthread_mutex {
        short           m_short[2];
        int             m_int;
        int             m_int1[4];
                        __MPOINTER;
        int             m_int2[2];
        int             m_int3[4];
        short           m_short2[2];
        int             m_int4[5];
        int             m_int5[2];
};

The problem seems to be the define for __POINTER_SET which uses a
long long constant.
Comment 1 Paolo Carlini 2007-10-08 18:57:21 UTC
So the problem is new, right? Has it to do with the recent fixes for the deadlock bug?
Comment 2 dave 2007-10-08 19:32:42 UTC
Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)

> ------- Comment #1 from pcarlini at suse dot de  2007-10-08 18:57 -------
> So the problem is new, right? Has it to do with the recent fixes for the
> deadlock bug?

Looking at the testresults, it appears to have been introduced between
128587 and 128594 in September.  The only patch of significance in this
period is Jason's 128590.  It's not obvious to me why this would have
affected the behavior of -pedantic.

Dave
Comment 3 Doug Kwan 2007-10-08 19:50:35 UTC
Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)

That's strange. I am looking at it. I ran the libstdc++ testsuite
before and did not see this problem.

-Doug

8 Oct 2007 19:32:42 -0000, dave at hiauly1 dot hia dot nrc dot ca
<gcc-bugzilla@gcc.gnu.org>:
>
>
> ------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2007-10-08 19:32 -------
> Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess
> errors)
>
> > ------- Comment #1 from pcarlini at suse dot de  2007-10-08 18:57 -------
> > So the problem is new, right? Has it to do with the recent fixes for the
> > deadlock bug?
>
> Looking at the testresults, it appears to have been introduced between
> 128587 and 128594 in September.  The only patch of significance in this
> period is Jason's 128590.  It's not obvious to me why this would have
> affected the behavior of -pedantic.
>
> Dave
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33700
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
Comment 4 dave 2007-10-08 20:10:51 UTC
Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)

> That's strange. I am looking at it. I ran the libstdc++ testsuite
> before and did not see this problem.

This is specific to LP64 hpux.

Did you test with 11.21 or 11.31?  Possibly, <sys/pthread.h> has been
updated.

Dave
Comment 5 Doug Kwan 2007-10-08 22:35:20 UTC
Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)

I only tested in Linux.

-Doug

8 Oct 2007 20:10:51 -0000, dave at hiauly1 dot hia dot nrc dot ca
<gcc-bugzilla@gcc.gnu.org>:
>
>
> ------- Comment #4 from dave at hiauly1 dot hia dot nrc dot ca  2007-10-08 20:10 -------
> Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess
> errors)
>
> > That's strange. I am looking at it. I ran the libstdc++ testsuite
> > before and did not see this problem.
>
> This is specific to LP64 hpux.
>
> Did you test with 11.21 or 11.31?  Possibly, <sys/pthread.h> has been
> updated.
>
> Dave
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33700
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
Comment 6 dave 2007-10-08 23:01:09 UTC
Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)

> I only tested in Linux.

This was not introduced by your change.  The problem is the use of
an C99 extension (long long constant) in a system header.  I
believe that this wouldn't normally cause a warning, but gthr-posix.h
contains defines derived from defines in pthread.h (e.g., PTHREAD_MUTEX_INIT).

Probably, this can be fixed by fixing the HP header.  On the other
hand, maybe the warning/error shouldn't happen.  Possibly, the defines
in gthr-posix.h that reference pthread macros need __extension__
before the right-hand side.

Dave
Comment 7 Paolo Carlini 2007-10-08 23:35:26 UTC
Let's remove Doug from CC, then, and thank him for his prompt feedback...
Comment 8 dave 2007-10-11 01:26:30 UTC
Subject: Re:  FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)

> Looking at the testresults, it appears to have been introduced between
> 128587 and 128594 in September.  The only patch of significance in this
> period is Jason's 128590.  It's not obvious to me why this would have
> affected the behavior of -pedantic.

I should get my eyes checked ;(  The test has been failing since
introduction in r128500.

Dave
Comment 9 John David Anglin 2007-10-11 23:50:30 UTC
Steve,

Does this bug also affect ia64-hpux?
Comment 10 John David Anglin 2007-10-14 22:22:37 UTC
Subject: Bug 33700

Author: danglin
Date: Sun Oct 14 22:22:25 2007
New Revision: 129304

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129304
Log:
	PR target/33700
	* inclhack.def (hpux11_pthread_const): New.
	* fixincl.x: Regenerate.
	* tests/base/sys/pthread.h: Update.


Modified:
    trunk/fixincludes/ChangeLog
    trunk/fixincludes/fixincl.x
    trunk/fixincludes/inclhack.def
    trunk/fixincludes/tests/base/sys/pthread.h

Comment 11 John David Anglin 2007-10-14 22:25:39 UTC
Fixed.