RE: [Committed] [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-22 Thread Hale Wang
> -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: 2014年6月21日 5:24 > To: Hale Wang > Cc: 'Mike Stump'; Richard Biener; Mike Stump; GCC Patches > Subject: Re: [Committed] [PATCH] PR61123 : Fix the ABI mis-matching error > caused b

Re: [Committed] [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-20 Thread Jakub Jelinek
On Fri, Jun 20, 2014 at 01:14:52PM +0800, Hale Wang wrote: > 2014-06-20 Hale Wang > > * gcc.target/arm/lto/: New folder to verify the LTO option. > * gcc.target/arm/lto/pr61123-enum-size_0.c: New test case. > * gcc.target/arm/lto/pr61123-enum-size_1.c: Likewise. >

[Committed] [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-19 Thread Hale Wang
> -Original Message- > From: Mike Stump [mailto:mikest...@comcast.net] > Sent: 2014年6月19日 1:42 > To: Richard Biener > Cc: Hale Wang; Mike Stump; GCC Patches > Subject: Re: [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO > > On Jun 18, 2014, at

Re: [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-18 Thread Mike Stump
On Jun 18, 2014, at 3:22 AM, Richard Biener wrote: >> Space after the *. >> >> I think you don't need to copy the LTO harness but you can simply >> use dg.exp and sth similar to gcc.dg/20081223-1.c (there is an >> effective target 'lto' to guard for lto support). >> >> So simply place the testca

Re: [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-18 Thread Richard Biener
On Wed, Jun 18, 2014 at 12:21 PM, Richard Biener wrote: > On Wed, Jun 18, 2014 at 10:14 AM, Hale Wang wrote: >> Hi, >> >> With LTO, -fno-short-enums is ignored, resulting in ABI mis-matching in >> linking. >> >> Refer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61123 for details. >> >> This pat

Re: [PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-18 Thread Richard Biener
On Wed, Jun 18, 2014 at 10:14 AM, Hale Wang wrote: > Hi, > > With LTO, -fno-short-enums is ignored, resulting in ABI mis-matching in > linking. > > Refer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61123 for details. > > This patch add fshort-enums and fshout-wchar to LTO group. > > To check it,

[PATCH] PR61123 : Fix the ABI mis-matching error caused by LTO

2014-06-18 Thread Hale Wang
Hi, With LTO, -fno-short-enums is ignored, resulting in ABI mis-matching in linking. Refer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61123  for details. This patch add fshort-enums and fshout-wchar to LTO group. To check it, a new procedure object-readelf is added in testsuite/lib/lto.exp a