public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43495]  New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
@ 2010-03-23 17:42 ghazi at gcc dot gnu dot org
  2010-03-23 19:05 ` [Bug c/43495] " ghazi at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2010-03-23 17:42 UTC (permalink / raw)
  To: gcc-bugs

When running the testsuite on ia64-unknown-linux-gnu with extra passes
containing -fpic/-fPIC I get the following additional error on the 4.5 trunk:

FAIL: gcc.c-torture/execute/20000603-1.c execution,  -O2
FAIL: gcc.c-torture/execute/20000603-1.c execution,  -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/20000603-1.c execution,  -O3 -g
FAIL: gcc.c-torture/execute/20000603-1.c execution,  -Os

This is a regressions from previous releases.

Testsuite results showing the extra error:
http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01997.html


-- 
           Summary: [4.5 regression] gcc.c-torture/execute/20000603-1.c
                    fails with -fpic/-fPIC
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
GCC target triplet: ia64-unknown-linux-gnu


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


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

* [Bug c/43495] [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
  2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
@ 2010-03-23 19:05 ` ghazi at gcc dot gnu dot org
  2010-03-23 22:18 ` ghazi at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2010-03-23 19:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ghazi at gcc dot gnu dot org  2010-03-23 19:05 -------
Testcase also fails on powerpc-unknown-linux-gnu with -fpic/-fPIC:

http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01630.html


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|ia64-unknown-linux-gnu      |ia64-unknown-linux-gnu
                   |                            |powerpc-unknown-linux-gnu


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


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

* [Bug c/43495] [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
  2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
  2010-03-23 19:05 ` [Bug c/43495] " ghazi at gcc dot gnu dot org
@ 2010-03-23 22:18 ` ghazi at gcc dot gnu dot org
  2010-03-24 10:20 ` [Bug testsuite/43495] " rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2010-03-23 22:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ghazi at gcc dot gnu dot org  2010-03-23 22:17 -------
Testcase also fails on sparc64-unknown-linux-gnu with -fpic/-fPIC in both 32
and 64 bit modes:

http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg00753.html


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|ia64-unknown-linux-gnu      |ia64-unknown-linux-gnu
                   |powerpc-unknown-linux-gnu   |powerpc-unknown-linux-gnu
                   |                            |sparc64-unknown


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


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

* [Bug testsuite/43495] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
  2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
  2010-03-23 19:05 ` [Bug c/43495] " ghazi at gcc dot gnu dot org
  2010-03-23 22:18 ` ghazi at gcc dot gnu dot org
@ 2010-03-24 10:20 ` rguenth at gcc dot gnu dot org
  2010-03-24 18:11 ` ghazi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-24 10:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-03-24 10:20 -------
The test is bogus and does not agree with how GCC interprets type-based
aliasing rules.  Thus it invokes undefined behavior (dependent on whether
we inline or not).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |testsuite
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-24 10:20:10
               date|                            |
            Summary|[4.5 regression] gcc.c-     |gcc.c-
                   |torture/execute/20000603-1.c|torture/execute/20000603-1.c
                   |fails with -fpic/-fPIC      |fails with -fpic/-fPIC


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


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

* [Bug testsuite/43495] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
  2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-03-24 10:20 ` [Bug testsuite/43495] " rguenth at gcc dot gnu dot org
@ 2010-03-24 18:11 ` ghazi at gcc dot gnu dot org
  2010-04-08 15:35 ` zsojka at seznam dot cz
  2010-04-08 15:38 ` zsojka at seznam dot cz
  5 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2010-03-24 18:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ghazi at gcc dot gnu dot org  2010-03-24 18:11 -------
OK, I'll modify the testcase to ensure function f() gets inlined.


-- 


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


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

* [Bug testsuite/43495] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
  2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-03-24 18:11 ` ghazi at gcc dot gnu dot org
@ 2010-04-08 15:35 ` zsojka at seznam dot cz
  2010-04-08 15:38 ` zsojka at seznam dot cz
  5 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-04-08 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from zsojka at seznam dot cz  2010-04-08 15:35 -------
Created an attachment (id=20336)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20336&action=view)
testcase with inlined f()

Even when the f() is declared as

static inline __attribute__((always_inline))
double f(struct s1 *a, struct s2 *b)

the testcase still fails with:
$ gcc -fschedule-insns -fstrict-aliasing pr43495-2.c && ./a.out
Aborted


-- 


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


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

* [Bug testsuite/43495] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
  2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-04-08 15:35 ` zsojka at seznam dot cz
@ 2010-04-08 15:38 ` zsojka at seznam dot cz
  5 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-04-08 15:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from zsojka at seznam dot cz  2010-04-08 15:38 -------
Testcase from comment #5 fails at x86_64-linux, trunk r153685, r158095.
It doesn't fail in the 4.4 branch.


-- 

zsojka at seznam dot cz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz


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


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

* [Bug testsuite/43495] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC
       [not found] <bug-43495-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-29 18:55 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-29 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just going to make this as a dup of bug 14319.

*** This bug has been marked as a duplicate of bug 14319 ***

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

end of thread, other threads:[~2021-07-29 18:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-23 17:42 [Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC ghazi at gcc dot gnu dot org
2010-03-23 19:05 ` [Bug c/43495] " ghazi at gcc dot gnu dot org
2010-03-23 22:18 ` ghazi at gcc dot gnu dot org
2010-03-24 10:20 ` [Bug testsuite/43495] " rguenth at gcc dot gnu dot org
2010-03-24 18:11 ` ghazi at gcc dot gnu dot org
2010-04-08 15:35 ` zsojka at seznam dot cz
2010-04-08 15:38 ` zsojka at seznam dot cz
     [not found] <bug-43495-4@http.gcc.gnu.org/bugzilla/>
2021-07-29 18:55 ` pinskia 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).