Bug 25441 - -fpic/-fPIC failure in gcc.dg/pr23911.c
Summary: -fpic/-fPIC failure in gcc.dg/pr23911.c
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 23224
  Show dependency treegraph
 
Reported: 2005-12-16 14:02 UTC by Kaveh Ghazi
Modified: 2006-01-01 05:35 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-12-25 01:25:58


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaveh Ghazi 2005-12-16 14:02:46 UTC
I'm getting a testsuite failure in 4.1/mainline in gcc.dg/pr23911.c on x86_64 and i686:
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00892.html
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00889.html
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00891.html
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00888.html

The testsuite logfile says:

FAIL: gcc.dg/pr23911.c scan-tree-dump-times = CR 0
FAIL: gcc.dg/pr23911.c scan-tree-dump-times = CI 0
Comment 1 Kaveh Ghazi 2005-12-16 15:09:57 UTC
Forgot to say this is with -fpic or -fPIC.
Comment 2 Andrew Pinski 2005-12-25 01:25:58 UTC
Just like PR 25444, this should be skiped or the const variable should be marked as static.
Comment 3 Kaveh Ghazi 2005-12-27 19:58:33 UTC
Subject: Bug 25441

Author: ghazi
Date: Tue Dec 27 19:58:28 2005
New Revision: 109083

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109083
Log:
	* g++.dg/rtti/tinfo1.C: Scan for ".global" also.

	PR testsuite/25442
	* gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c,
	gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC.

	PR testsuite/25441
	* gcc.dg/pr23911.c: Make test variable static.

	PR testsuite/25444
	* gcc.dg/tree-ssa/pr14841.c: Likewise.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/rtti/tinfo1.C
    trunk/gcc/testsuite/gcc.dg/ipa/ipa-1.c
    trunk/gcc/testsuite/gcc.dg/ipa/ipa-2.c
    trunk/gcc/testsuite/gcc.dg/ipa/ipa-3.c
    trunk/gcc/testsuite/gcc.dg/ipa/ipa-4.c
    trunk/gcc/testsuite/gcc.dg/ipa/ipa-5.c
    trunk/gcc/testsuite/gcc.dg/pr23911.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr14841.c

Comment 4 Kaveh Ghazi 2005-12-27 20:08:44 UTC
Subject: Bug 25441

Author: ghazi
Date: Tue Dec 27 20:08:39 2005
New Revision: 109084

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109084
Log:
	* g++.dg/rtti/tinfo1.C: Scan for ".global" also.

	PR testsuite/25442
	* gcc.dg/ipa/ipa-1.c, gcc.dg/ipa/ipa-2.c, gcc.dg/ipa/ipa-3.c,
	gcc.dg/ipa/ipa-4.c, gcc.dg/ipa/ipa-5.c: Skip if -fpic/-fPIC.

	PR testsuite/25441
	* gcc.dg/pr23911.c: Make test variable static.

	PR testsuite/25444
	* gcc.dg/tree-ssa/pr14841.c: Likewise.


Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/rtti/tinfo1.C
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/ipa/ipa-1.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/ipa/ipa-2.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/ipa/ipa-3.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/ipa/ipa-4.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/ipa/ipa-5.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr23911.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/tree-ssa/pr14841.c

Comment 5 Kaveh Ghazi 2005-12-29 17:54:40 UTC
Patch installed.