public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
@ 2011-01-21 15:32 ro at gcc dot gnu.org
  2011-01-25  0:29 ` [Bug c/47400] " joseph at codesourcery dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-01-21 15:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

           Summary: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX
                    6.5
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ro@gcc.gnu.org
              Host: alpha-dec-osf5.1b, mips-sgi-irix6.5
            Target: alpha-dec-osf5.1b, mips-sgi-irix6.5
             Build: alpha-dec-osf5.1b, mips-sgi-irix6.5


Several UCN tests partially fail on Tru64 UNIX V5.1B and IRIX 6.5. One common
example is

FAIL: gcc.dg/ucnid-10.c  (test for warnings, line 7)
FAIL: gcc.dg/ucnid-10.c  (test for warnings, line 8)
FAIL: gcc.dg/ucnid-10.c (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/ucnid-10.c:7:9: warning:
#pragma pack(pop, ó) encountered without matching #pragma pack(push, ó)
[-Wpragmas]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/ucnid-10.c:8:9: warning:
unknown action 'ç' for '#pragma pack' - ignored [-Wpragmas]

Instead of being printed in \u... notation, the characters are printed
literally.

The set of failures isn't identical on both platforms (maybe due to char being
unsigned on IRIX, but signed on Tru64 UNIX?), but the symptom is always the
same.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/47400] Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
  2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
@ 2011-01-25  0:29 ` joseph at codesourcery dot com
  2011-01-28 13:05 ` ro at CeBiTec dot Uni-Bielefeld.DE
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: joseph at codesourcery dot com @ 2011-01-25  0:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-01-24 23:45:31 UTC ---
This would be a testsuite issue; the tests require a locale using the 
ASCII character set.  Where (in several .exp files) the code does

# Many hosts now default to a non-ASCII C locale, however, so
# they can set a charset encoding here if they need.
if { [ishost "*-*-cygwin*"] } {
  setenv LC_ALL C.ASCII
  setenv LANG C.ASCII
}

or similar, you need to add a new case for your targets using an 
appropriate locale name - if they have a version of the C locale that uses 
ASCII.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/47400] Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
  2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
  2011-01-25  0:29 ` [Bug c/47400] " joseph at codesourcery dot com
@ 2011-01-28 13:05 ` ro at CeBiTec dot Uni-Bielefeld.DE
  2011-01-31 16:05 ` [Bug testsuite/47400] " ro at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2011-01-28 13:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-01-26 15:33:03 UTC ---
From my reading of libiconv 1.13.1 libcharset/tools/{irix-6.5,
osf1-5.1}, it seems that there isn't any such locale.  If this cannot be
helped, it seems that we should have some

    dg-require-effective-target ascii-locale

(suggestions for a better name welcome) to disable the affected tests on
platforms like this.

    Rainer

--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-01-28 12:44:14 UTC ---
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:

> From my reading of libiconv 1.13.1 libcharset/tools/{irix-6.5,
> osf1-5.1}, it seems that there isn't any such locale.  If this cannot be
> helped, it seems that we should have some
>
> 	dg-require-effective-target ascii-locale
>
> (suggestions for a better name welcome) to disable the affected tests on
> platforms like this.

Joseph, did you see that comment?  The mail may not have gone out during
the Bugzilla/Perl snafu on gcc.gnu.org.

Anyway, on second thought this is a host, not a target issue, so this
should be something like dg-require-ascii-locale instead.

    Rainer


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/47400] Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
  2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
  2011-01-25  0:29 ` [Bug c/47400] " joseph at codesourcery dot com
  2011-01-28 13:05 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2011-01-31 16:05 ` ro at gcc dot gnu.org
  2011-02-11 10:03 ` ro at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-01-31 16:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2011-01/msg02305.htm
                   |                            |l
   Last reconfirmed|                            |2011.01.31 15:06:17
          Component|c                           |testsuite
         AssignedTo|unassigned at gcc dot       |ro at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.6.0
     Ever Confirmed|0                           |1

--- Comment #4 from Rainer Orth <ro at gcc dot gnu.org> 2011-01-31 15:06:17 UTC ---
Mine, initial patch posted.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/47400] Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
  2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-01-31 16:05 ` [Bug testsuite/47400] " ro at gcc dot gnu.org
@ 2011-02-11 10:03 ` ro at gcc dot gnu.org
  2011-02-11 10:09 ` ro at gcc dot gnu.org
  2011-04-12 16:37 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-02-11 10:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> 2011-02-11 10:01:33 UTC ---
Author: ro
Date: Fri Feb 11 10:01:29 2011
New Revision: 170046

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170046
Log:
i    gcc/testsuite:
    PR testsuite/47400
    * lib/target-supports.exp (check_ascii_locale_available): New proc.
    * lib/target-supports-dg.exp (dg-require-ascii-locale): New proc.
    * gcc.dg/attr-alias-5.c: Use dg-require-ascii-locale.
    * gcc.dg/ucnid-10.c: Likewise.
    * gcc.dg/ucnid-13.c: Likewise.
    * gcc.dg/ucnid-7.c: Likewise.
    * gcc.dg/ucnid-8.c: Likewise.
    * Adapt dg-warning line number.

    gcc:
    PR testsuite/47400
    * doc/sourcebuild.texi (Require Support): Document
    dg-require-ascii-locale.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/sourcebuild.texi
    trunk/gcc/testsuite/gcc.dg/attr-alias-5.c
    trunk/gcc/testsuite/gcc.dg/ucnid-10.c
    trunk/gcc/testsuite/gcc.dg/ucnid-13.c
    trunk/gcc/testsuite/gcc.dg/ucnid-7.c
    trunk/gcc/testsuite/gcc.dg/ucnid-8.c
    trunk/gcc/testsuite/lib/target-supports-dg.exp
    trunk/gcc/testsuite/lib/target-supports.exp


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/47400] Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
  2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-02-11 10:03 ` ro at gcc dot gnu.org
@ 2011-02-11 10:09 ` ro at gcc dot gnu.org
  2011-04-12 16:37 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-02-11 10:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Rainer Orth <ro at gcc dot gnu.org> 2011-02-11 10:03:37 UTC ---
Fixed for 4.6.0.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug testsuite/47400] Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5
  2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-02-11 10:09 ` ro at gcc dot gnu.org
@ 2011-04-12 16:37 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2011-04-12 16:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47400

--- Comment #7 from Rainer Orth <ro at gcc dot gnu.org> 2011-04-12 16:37:08 UTC ---
Author: ro
Date: Tue Apr 12 16:37:04 2011
New Revision: 172326

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172326
Log:
    gcc:
    Backport from mainline:
    2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

    PR testsuite/47400
    * doc/sourcebuild.texi (Require Support): Document
    dg-require-ascii-locale.

    gcc/testsuite:
    Backport from mainline:
    2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

    PR testsuite/47400
    * lib/target-supports.exp (check_ascii_locale_available): New proc.
    * lib/target-supports-dg.exp (dg-require-ascii-locale): New proc.
    * gcc.dg/attr-alias-5.c: Use dg-require-ascii-locale.
    * gcc.dg/ucnid-10.c: Likewise.
    * gcc.dg/ucnid-13.c: Likewise.
    * gcc.dg/ucnid-7.c: Likewise.
    * gcc.dg/ucnid-8.c: Likewise.
    Adapt dg-warning line number.

Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/doc/sourcebuild.texi
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/attr-alias-5.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/ucnid-10.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/ucnid-13.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/ucnid-7.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/ucnid-8.c
    branches/gcc-4_5-branch/gcc/testsuite/lib/target-supports-dg.exp
    branches/gcc-4_5-branch/gcc/testsuite/lib/target-supports.exp


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-12 16:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 15:32 [Bug c/47400] New: Several UCN tests FAIL on Tru64 UNIX V5.1B and IRIX 6.5 ro at gcc dot gnu.org
2011-01-25  0:29 ` [Bug c/47400] " joseph at codesourcery dot com
2011-01-28 13:05 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-01-31 16:05 ` [Bug testsuite/47400] " ro at gcc dot gnu.org
2011-02-11 10:03 ` ro at gcc dot gnu.org
2011-02-11 10:09 ` ro at gcc dot gnu.org
2011-04-12 16:37 ` ro at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).