Bug 35512 - [4.4 Regression]: gcc.target/ia64/visibility-1.c
Summary: [4.4 Regression]: gcc.target/ia64/visibility-1.c
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.4.0
Assignee: Jim Wilson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 04:50 UTC by H.J. Lu
Modified: 2008-03-18 04:06 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-03-09 04:58:04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2008-03-09 04:50:29 UTC
Revision 133014 gives

FAIL: gcc.target/ia64/visibility-1.c scan-assembler gprel.*variable_i

Revision 132852 is OK.
Comment 1 Andrew Pinski 2008-03-09 04:58:03 UTC
>FAIL: gcc.target/ia64/visibility-1.c scan-assembler gprel.*variable_i

If you look at the testcase, you will notice that variable_i is only read from and never written to so the variable becomes a readonly variable via ipa-reference and then Store CCP inlines the value so it is no longer referenced and we don't need to emit it.

So the testcase was never written correctly :).
Comment 2 Jim Wilson 2008-03-18 04:02:13 UTC
Subject: Bug 35512

Author: wilson
Date: Tue Mar 18 04:01:21 2008
New Revision: 133301

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133301
Log:
PR testsuite/35512
* gcc.target/ia64/visibility-1.c (foo): Change return type to void.
Write variables instead of reading them.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/ia64/visibility-1.c

Comment 3 Jim Wilson 2008-03-18 04:06:02 UTC
Mine.  IA-64.
Comment 4 Jim Wilson 2008-03-18 04:06:54 UTC
Fixed.