Patchwork Fix LTO wrt aliases

login
register
mail settings
Submitter H.J. Lu
Date Dec. 16, 2010, 12:17 p.m.
Message ID <AANLkTi=FVcMeuLaBTj_ByYQ5sGKdr-OVMr5xUA85u1RG@mail.gmail.com>
Download mbox | patch
Permalink /patch/75745/
State New
Headers show

Comments

H.J. Lu - Dec. 16, 2010, 12:17 p.m.
On Wed, Dec 15, 2010 at 5:46 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> It cause:
>>
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46976
> Huh, the testcase got malformed in weird way having * instead of /*
> that got missed during my pre-commit test as I don't have plugin enabled
> ld there. I've comitted the obvious fix and hope it is OK now.

I checked in this patch for:

FAIL: gcc.dg/lto/pr46940 c_lto_pr46940_0.o-c_lto_pr46940_1.o execute -O0 -flto
FAIL: gcc.dg/lto/pr46940 c_lto_pr46940_0.o-c_lto_pr46940_1.o execute
-O0 -flto -flto-partition=1to1
FAIL: gcc.dg/lto/pr46940 c_lto_pr46940_0.o-c_lto_pr46940_1.o execute
-O0 -flto -flto-partition=none
FAIL: gcc.dg/lto/pr46940 c_lto_pr46940_0.o-c_lto_pr46940_1.o execute -O2 -flto
FAIL: gcc.dg/lto/pr46940 c_lto_pr46940_0.o-c_lto_pr46940_1.o execute
-O2 -flto -flto-partition=1to1
FAIL: gcc.dg/lto/pr46940 c_lto_pr46940_0.o-c_lto_pr46940_1.o execute
-O2 -flto -flto-partition=none

Patch

Index: gcc.dg/lto/pr46940_1.c
===================================================================
--- gcc.dg/lto/pr46940_1.c	(revision 167902)
+++ gcc.dg/lto/pr46940_1.c	(working copy)
@@ -1,5 +1,7 @@ 
 extern void _moz_foo (void);
+int
 main()
 {
   _moz_foo ();
+  return 0;
 }
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 167902)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@ 
+2010-12-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR lto/46976
+	* gcc.dg/lto/pr46940_1.c (main): Return 0.
+
 2010-12-16  Chung-Lin Tang  <cltang@codesourcery.com>

 	PR target/46883