patch to fix PR63527

H.J. Lu hjl.tools@gmail.com
Tue Nov 25 21:47:00 GMT 2014


On Tue, Nov 25, 2014 at 12:54 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Nov 25, 2014 at 12:22 PM, Vladimir Makarov <vmakarov@redhat.com> wrote:
>> The following patch fixes
>>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63527
>>
>> The patch was tested and bootstrapped on x86/x86-64.
>>
>> Committed as rev. 218509.
>>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63527
>
> I checked in this testcase.
>
> Thanks.
>
> --
> H.J.
> ---
> Index: ChangeLog
> ===================================================================
> --- ChangeLog (revision 218060)
> +++ ChangeLog (working copy)
> @@ -1,3 +1,8 @@
> +2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>
> +
> + PR target/63527
> + * gcc.target/i386/pr63527.c: New test.
> +
>  2014-11-25  Martin Liska  <mliska@suse.cz>

Added another testcase from

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534


-- 
H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 218061)
+++ ChangeLog (working copy)
@@ -1,5 +1,10 @@
 2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>

+ PR target/63534
+ * gcc.target/i386/pr63534.c: New test.
+
+2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>
+
  PR target/63527
  * gcc.target/i386/pr63527.c: New test.

Index: gcc.target/i386/pr63534.c
===================================================================
--- gcc.target/i386/pr63534.c (revision 0)
+++ gcc.target/i386/pr63534.c (working copy)
@@ -0,0 +1,15 @@
+/* PR target/pr63534 */
+/* { dg-do compile { target { ia32 && fpic } } } */
+/* { dg-options "-O2 -fPIC" } */
+
+extern void bar (void);
+
+void
+foo (void)
+{
+  bar ();
+  bar ();
+}
+
+/* We shouldn't load EBX again.  */
+/* { dg-final { scan-assembler-not "movl\[ \t\]%\[^,\]+, %ebx" } } */



More information about the Gcc-patches mailing list