public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38261]  New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
@ 2008-11-25 15:49 ghazi at gcc dot gnu dot org
  2008-11-25 16:33 ` [Bug tree-optimization/38261] [4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-11-25 15:49 UTC (permalink / raw)
  To: gcc-bugs

The testcases gcc.dg/torture/ipa-pta-1.c and gcc.dg/tree-ssa/alias-2.c used to
work with -fpic/-fPIC on the trunk, but now fail.  The alias-2.c testcase
worked in 4.2, 4.3 with -fpic/-fPIC also, and the testcase doesn't appear to
have changed.  I think ipa-pta-1.c was added only on the trunk a few months ago
so there's no comparison with previous releases, however it did work on the
trunk up until very recently.

They both passed here:
http://gcc.gnu.org/ml/gcc-testresults/2008-11/msg01383.html

And they both started failing here:
http://gcc.gnu.org/ml/gcc-testresults/2008-11/msg01516.html

Based on the timing, I suspect that the cause is related.


-- 
           Summary: [4.4 regression] gcc.dg/torture/ipa-pta-1.c &
                    gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
GCC target triplet: x86_64-*-linux-gnu


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


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

* [Bug tree-optimization/38261] [4.4 Regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
  2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
@ 2008-11-25 16:33 ` rguenth at gcc dot gnu dot org
  2008-11-25 16:38 ` hjl dot tools at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-11-25 16:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.4 regression]            |[4.4 Regression]
                   |gcc.dg/torture/ipa-pta-1.c &|gcc.dg/torture/ipa-pta-1.c &
                   |gcc.dg/tree-ssa/alias-2.c   |gcc.dg/tree-ssa/alias-2.c
                   |fail with -fpic/-fPIC       |fail with -fpic/-fPIC
   Target Milestone|---                         |4.4.0


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


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

* [Bug tree-optimization/38261] [4.4 Regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
  2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
  2008-11-25 16:33 ` [Bug tree-optimization/38261] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-11-25 16:38 ` hjl dot tools at gmail dot com
  2008-11-27 17:01 ` ghazi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-11-25 16:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2008-11-25 16:37 -------
Can you use ./contrib/gcc_update to update your gcc source tree
so that we can tell which revisions you are using? Thanks.


-- 


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


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

* [Bug tree-optimization/38261] [4.4 Regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
  2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
  2008-11-25 16:33 ` [Bug tree-optimization/38261] [4.4 Regression] " rguenth at gcc dot gnu dot org
  2008-11-25 16:38 ` hjl dot tools at gmail dot com
@ 2008-11-27 17:01 ` ghazi at gcc dot gnu dot org
  2008-11-28 10:05 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-11-27 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ghazi at gcc dot gnu dot org  2008-11-27 16:59 -------
(In reply to comment #1)
> Can you use ./contrib/gcc_update to update your gcc source tree
> so that we can tell which revisions you are using? Thanks.

Done, however it only works for 4.3 and trunk, not 4.2.  I assume that's
intentional, i.e. the mechanism in gcc_update never got backported for the 4.2
branch?


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-11-27 16:59:45
               date|                            |


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


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

* [Bug tree-optimization/38261] [4.4 Regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
  2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-11-27 17:01 ` ghazi at gcc dot gnu dot org
@ 2008-11-28 10:05 ` jakub at gcc dot gnu dot org
  2008-11-28 10:14 ` [Bug testsuite/38261] " jakub at gcc dot gnu dot org
  2008-11-28 10:53 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-28 10:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-11-28 10:03 -------
ipa-pta-1.c fails since:
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00727.html
with -fpic, but gcc is correct and the testcase should be adjusted, it can't
assume the globally available functions will not be overridden.
Ditto for alias-2.c.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-11-27 16:59:45         |2008-11-28 10:03:49
               date|                            |


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


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

* [Bug testsuite/38261] [4.4 Regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
  2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-11-28 10:05 ` jakub at gcc dot gnu dot org
@ 2008-11-28 10:14 ` jakub at gcc dot gnu dot org
  2008-11-28 10:53 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-28 10:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-11-28 10:12 -------
Subject: Bug 38261

Author: jakub
Date: Fri Nov 28 10:11:18 2008
New Revision: 142256

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142256
Log:
        PR testsuite/38261
        * gcc.dg/tree-ssa/alias-2.c: Only compile on nonpic targets.
        * gcc.dg/torture/ipa-pta-1.c: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/ipa-pta-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/alias-2.c


-- 


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


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

* [Bug testsuite/38261] [4.4 Regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC
  2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-11-28 10:14 ` [Bug testsuite/38261] " jakub at gcc dot gnu dot org
@ 2008-11-28 10:53 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-28 10:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-11-28 10:51 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-11-28 10:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-25 15:49 [Bug tree-optimization/38261] New: [4.4 regression] gcc.dg/torture/ipa-pta-1.c & gcc.dg/tree-ssa/alias-2.c fail with -fpic/-fPIC ghazi at gcc dot gnu dot org
2008-11-25 16:33 ` [Bug tree-optimization/38261] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-11-25 16:38 ` hjl dot tools at gmail dot com
2008-11-27 17:01 ` ghazi at gcc dot gnu dot org
2008-11-28 10:05 ` jakub at gcc dot gnu dot org
2008-11-28 10:14 ` [Bug testsuite/38261] " jakub at gcc dot gnu dot org
2008-11-28 10:53 ` jakub at gcc dot gnu dot 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).