public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
@ 2024-01-16 19:18 seurer at gcc dot gnu.org
  2024-01-17  8:00 ` [Bug testsuite/113428] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: seurer at gcc dot gnu.org @ 2024-01-16 19:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

            Bug ID: 113428
           Summary: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c
                    fails after r14-7158-gb5476e4c881b0d
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:b5476e4c881b0d2bfbbfb84ee38d791123acf8e1, r14-7158-gb5476e4c881b0d

Seeing this on big endian with -m32.  Works fine on BE with -m64.

make  -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32}'
gomp.exp=gcc.dg/gomp/bad-array-section-c-3.c"
FAIL: gcc.dg/gomp/bad-array-section-c-3.c  at line 14 (test for warnings, line
12)
# of expected passes            4
# of unexpected failures        1


spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/xgcc
-B/home/seurer/gcc/git/build/gcc-test/gcc/
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/gomp/bad-array-section-c-3.c
-m32 -fdiagnostics-plain-output -fopenmp -S -o bad-array-section-c-3.s
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/gomp/bad-array-section-c-3.c:
In function 'main':
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/gomp/bad-array-section-c-3.c:12:58:
error: expected ']' before ':' token
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/gomp/bad-array-section-c-3.c:12:23:
sorry, unimplemented: unsupported map expression '{(int *)arr[5]}'
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/gomp/bad-array-section-c-3.c:19:23:
sorry, unimplemented: unsupported map expression '{&arr[5]}'
compiler exited with status 1
PASS: gcc.dg/gomp/bad-array-section-c-3.c  at line 13 (test for errors, line
12)
FAIL: gcc.dg/gomp/bad-array-section-c-3.c  at line 14 (test for warnings, line
12)
PASS: gcc.dg/gomp/bad-array-section-c-3.c  at line 15 (test for warnings, line
12)
PASS: gcc.dg/gomp/bad-array-section-c-3.c  at line 20 (test for warnings, line
19)

commit b5476e4c881b0d2bfbbfb84ee38d791123acf8e1 (HEAD)
Author: Julian Brown <julian@codesourcery.com>
Date:   Mon Nov 15 02:23:49 2021 -0800

    OpenMP: lvalue parsing for map/to/from clauses (C)

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
@ 2024-01-17  8:00 ` rguenth at gcc dot gnu.org
  2024-01-17  9:22 ` clyon at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-17  8:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
  2024-01-17  8:00 ` [Bug testsuite/113428] " rguenth at gcc dot gnu.org
@ 2024-01-17  9:22 ` clyon at gcc dot gnu.org
  2024-01-17 13:46 ` ro at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: clyon at gcc dot gnu.org @ 2024-01-17  9:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc64-linux-gnu         |powerpc64-linux-gnu arm
                 CC|                            |clyon at gcc dot gnu.org

--- Comment #1 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Also seen on arm targets.

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
  2024-01-17  8:00 ` [Bug testsuite/113428] " rguenth at gcc dot gnu.org
  2024-01-17  9:22 ` clyon at gcc dot gnu.org
@ 2024-01-17 13:46 ` ro at gcc dot gnu.org
  2024-03-06 10:00 ` rearnsha at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu.org @ 2024-01-17 13:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Target|powerpc64-linux-gnu arm     |powerpc64-linux-gnu arm
                   |                            |*-*-solaris2.11,
                   |                            |i686-pc-linux-gnu
                 CC|                            |ro at gcc dot gnu.org
   Last reconfirmed|                            |2024-01-17
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> ---
Seen on all 32-bit targets actually (at least Solaris/SPARC, Solaris/x86, and
32-bit Linux/x86_64).

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-01-17 13:46 ` ro at gcc dot gnu.org
@ 2024-03-06 10:00 ` rearnsha at gcc dot gnu.org
  2024-03-06 10:06 ` rearnsha at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-03-06 10:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
The referenced patch added the test that is failing.  How is that a regression?
 Or are you suggesting that the test works without the rest of the patch
applied?

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-03-06 10:00 ` rearnsha at gcc dot gnu.org
@ 2024-03-06 10:06 ` rearnsha at gcc dot gnu.org
  2024-03-06 15:24 ` dave.anglin at bell dot net
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-03-06 10:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
/* { dg-warning {cast to pointer from integer of different size} "" { target
*-*-* } .-2 } */

I'm guessing it's this that's causing the problem because int and int* are the
same size on 32-bit targets.  So would changing the test to:

-  int arr[20];
+  char arr[20];

be enough?  AFAIK we don't have any targets with 8-bit pointers.

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-03-06 10:06 ` rearnsha at gcc dot gnu.org
@ 2024-03-06 15:24 ` dave.anglin at bell dot net
  2024-03-06 17:24 ` rearnsha at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dave.anglin at bell dot net @ 2024-03-06 15:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

--- Comment #5 from dave.anglin at bell dot net ---
On 2024-03-06 5:06 a.m., rearnsha at gcc dot gnu.org wrote:
> I'm guessing it's this that's causing the problem because int and int* are the
> same size on 32-bit targets.  So would changing the test to:
>
> -  int arr[20];
> +  char arr[20];
>
> be enough?  AFAIK we don't have any targets with 8-bit pointers.
Test passes with the attached change on hppa-unknown-linux-gnu.

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2024-03-06 15:24 ` dave.anglin at bell dot net
@ 2024-03-06 17:24 ` rearnsha at gcc dot gnu.org
  2024-03-07 20:51 ` law at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-03-06 17:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Patch here: https://gcc.gnu.org/pipermail/gcc-patches/2024-March/647294.html

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2024-03-06 17:24 ` rearnsha at gcc dot gnu.org
@ 2024-03-07 20:51 ` law at gcc dot gnu.org
  2024-03-11 15:52 ` cvs-commit at gcc dot gnu.org
  2024-03-11 17:19 ` rearnsha at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-07 20:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu.org
           Priority|P3                          |P2

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2024-03-07 20:51 ` law at gcc dot gnu.org
@ 2024-03-11 15:52 ` cvs-commit at gcc dot gnu.org
  2024-03-11 17:19 ` rearnsha at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-03-11 15:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Earnshaw <rearnsha@gcc.gnu.org>:

https://gcc.gnu.org/g:c27b30552e6cc789425d3628d294dafc5f3a0861

commit r14-9430-gc27b30552e6cc789425d3628d294dafc5f3a0861
Author: Richard Earnshaw <rearnsha@arm.com>
Date:   Wed Mar 6 13:41:02 2024 +0000

    gomp: testsuite: improve compatibility of bad-array-section-3.c [PR113428]

    This test generates different warnings on ilp32 targets because the size
    of an integer matches the size of a pointer.  Avoid this by using
    signed char.

    gcc/testsuite:

            PR testsuite/113428
            * gcc.dg/gomp/bad-array-section-c-3.c: Use signed char instead
            of int.

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

* [Bug testsuite/113428] [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d
  2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2024-03-11 15:52 ` cvs-commit at gcc dot gnu.org
@ 2024-03-11 17:19 ` rearnsha at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-03-11 17:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113428

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

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

--- Comment #8 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Fixed

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

end of thread, other threads:[~2024-03-11 17:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 19:18 [Bug testsuite/113428] New: [14 regression] gcc.dg/gomp/bad-array-section-c-3.c fails after r14-7158-gb5476e4c881b0d seurer at gcc dot gnu.org
2024-01-17  8:00 ` [Bug testsuite/113428] " rguenth at gcc dot gnu.org
2024-01-17  9:22 ` clyon at gcc dot gnu.org
2024-01-17 13:46 ` ro at gcc dot gnu.org
2024-03-06 10:00 ` rearnsha at gcc dot gnu.org
2024-03-06 10:06 ` rearnsha at gcc dot gnu.org
2024-03-06 15:24 ` dave.anglin at bell dot net
2024-03-06 17:24 ` rearnsha at gcc dot gnu.org
2024-03-07 20:51 ` law at gcc dot gnu.org
2024-03-11 15:52 ` cvs-commit at gcc dot gnu.org
2024-03-11 17:19 ` rearnsha 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).