public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][ARM] New testcase to check parameter passing bug
@ 2015-03-13  2:08 Honggyu Kim
  2015-03-13 12:04 ` Kyrill Tkachov
  0 siblings, 1 reply; 11+ messages in thread
From: Honggyu Kim @ 2015-03-13  2:08 UTC (permalink / raw)
  To: gcc-patches; +Cc: Honggyu Kim

Hi,

I have wrote a testcase that reproduces argument overwriting bug during arm
code generation.

I wrote this testcase with the help of Mikael Pettersson.
If some format is not proper to run in gcc testsuite framework, please
correct me.

Please refer to the following bugzilla link for details:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358

Honggyu
---
 gcc/testsuite/ChangeLog                |    5 +++++
 gcc/testsuite/gcc.target/arm/pr65358.c |   34 ++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 gcc/testsuite/gcc.target/arm/pr65358.c

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5302dbd..9acd12a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-13  Honggyu Kim  <hong.gyu.kim@lge.com>
+
+	PR target/65235
+	* gcc.target/arm/pr65358.c: New test for sibcall argument passing bug.
+
 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
 	PR rtl-optimization/65235
diff --git a/gcc/testsuite/gcc.target/arm/pr65358.c b/gcc/testsuite/gcc.target/arm/pr65358.c
new file mode 100644
index 0000000..d663dcf
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/pr65358.c
@@ -0,0 +1,34 @@
+/* PR target/65358 */
+/* { dg-do compile { target arm*-*-* } } */
+/* { dg-options "-O2" } */
+
+struct pack
+{
+  int fine;
+  int victim;
+  int killer;
+};
+
+int __attribute__ ((__noinline__, __noclone__))
+bar (int a, int b, struct pack p)
+{
+  if (a != 20 || b != 30)
+    __builtin_abort ();
+  if (p.fine != 40 || p.victim != 50 || p.killer != 60)
+    __builtin_abort ();
+  return 0;
+}
+
+int __attribute__ ((__noinline__, __noclone__))
+foo (int arg1, int arg2, int arg3, struct pack p)
+{
+  return bar (arg2, arg3, p);
+}
+
+int main (void)
+{
+  struct pack p = { 40, 50, 60 };
+
+  (void) foo (10, 20, 30, p);
+  return 0;
+}
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [PATCH][ARM] New testcase to check parameter passing bug
  2015-03-13  2:08 [PATCH][ARM] New testcase to check parameter passing bug Honggyu Kim
@ 2015-03-13 12:04 ` Kyrill Tkachov
  2015-03-13 13:04   ` Christophe Lyon
  2015-03-13 14:12   ` Segher Boessenkool
  0 siblings, 2 replies; 11+ messages in thread
From: Kyrill Tkachov @ 2015-03-13 12:04 UTC (permalink / raw)
  To: 'Honggyu Kim', gcc-patches


> Hi,

Hi Honggyu,
Thanks for helping out. I've got a couple of pointers for the testcase
inline.

> 
> I have wrote a testcase that reproduces argument overwriting bug during
> arm code generation.
> 
> I wrote this testcase with the help of Mikael Pettersson.
> If some format is not proper to run in gcc testsuite framework, please
correct
> me.
> 
> Please refer to the following bugzilla link for details:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358
> 
> Honggyu
> ---
>  gcc/testsuite/ChangeLog                |    5 +++++
>  gcc/testsuite/gcc.target/arm/pr65358.c |   34
> ++++++++++++++++++++++++++++++++
>  2 files changed, 39 insertions(+)
>  create mode 100644 gcc/testsuite/gcc.target/arm/pr65358.c
> 
> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index
> 5302dbd..9acd12a 100644
> --- a/gcc/testsuite/ChangeLog
> +++ b/gcc/testsuite/ChangeLog
> @@ -1,3 +1,8 @@
> +2015-03-13  Honggyu Kim  <hong.gyu.kim@lge.com>
> +
> +	PR target/65235
> +	* gcc.target/arm/pr65358.c: New test for sibcall argument passing
> bug.

Just 'New test.' for the entry should be enough, but it's not a big deal.

> +
>  2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
> 
>  	PR rtl-optimization/65235
> diff --git a/gcc/testsuite/gcc.target/arm/pr65358.c
> b/gcc/testsuite/gcc.target/arm/pr65358.c
> new file mode 100644
> index 0000000..d663dcf
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/arm/pr65358.c
> @@ -0,0 +1,34 @@
> +/* PR target/65358 */
> +/* { dg-do compile { target arm*-*-* } } */

No need for the target selector. The fact that it's in gcc.target/arm
already
means it will only be run for the arm targets.
Also, the bug is exposed at runtime, so this should be a dg-do run test.

Cheers,
Kyrill

> +/* { dg-options "-O2" } */
> +
> +struct pack
> +{
> +  int fine;
> +  int victim;
> +  int killer;
> +};
> +
> +int __attribute__ ((__noinline__, __noclone__)) bar (int a, int b,
> +struct pack p) {
> +  if (a != 20 || b != 30)
> +    __builtin_abort ();
> +  if (p.fine != 40 || p.victim != 50 || p.killer != 60)
> +    __builtin_abort ();
> +  return 0;
> +}
> +
> +int __attribute__ ((__noinline__, __noclone__)) foo (int arg1, int
> +arg2, int arg3, struct pack p) {
> +  return bar (arg2, arg3, p);
> +}
> +
> +int main (void)
> +{
> +  struct pack p = { 40, 50, 60 };
> +
> +  (void) foo (10, 20, 30, p);
> +  return 0;
> +}
> --
> 1.7.9.5
> 




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH][ARM] New testcase to check parameter passing bug
  2015-03-13 12:04 ` Kyrill Tkachov
@ 2015-03-13 13:04   ` Christophe Lyon
  2015-03-13 14:12   ` Segher Boessenkool
  1 sibling, 0 replies; 11+ messages in thread
From: Christophe Lyon @ 2015-03-13 13:04 UTC (permalink / raw)
  To: Kyrill Tkachov, 'Honggyu Kim', gcc-patches

On 03/13/15 13:04, Kyrill Tkachov wrote:
>
>> Hi,
>
> Hi Honggyu,
> Thanks for helping out. I've got a couple of pointers for the testcase
> inline.
>
>>
>> I have wrote a testcase that reproduces argument overwriting bug during
>> arm code generation.
>>
>> I wrote this testcase with the help of Mikael Pettersson.
>> If some format is not proper to run in gcc testsuite framework, please
> correct
>> me.
>>
>> Please refer to the following bugzilla link for details:
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358
>>
>> Honggyu
>> ---
>>   gcc/testsuite/ChangeLog                |    5 +++++
>>   gcc/testsuite/gcc.target/arm/pr65358.c |   34
>> ++++++++++++++++++++++++++++++++
>>   2 files changed, 39 insertions(+)
>>   create mode 100644 gcc/testsuite/gcc.target/arm/pr65358.c
>>
>> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index
>> 5302dbd..9acd12a 100644
>> --- a/gcc/testsuite/ChangeLog
>> +++ b/gcc/testsuite/ChangeLog
>> @@ -1,3 +1,8 @@
>> +2015-03-13  Honggyu Kim  <hong.gyu.kim@lge.com>
>> +
>> +	PR target/65235
Looks like the PR number is wrong.

>> +	* gcc.target/arm/pr65358.c: New test for sibcall argument passing
>> bug.
>
> Just 'New test.' for the entry should be enough, but it's not a big deal.
>
>> +
>>   2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>>
>>   	PR rtl-optimization/65235
>> diff --git a/gcc/testsuite/gcc.target/arm/pr65358.c
>> b/gcc/testsuite/gcc.target/arm/pr65358.c
>> new file mode 100644
>> index 0000000..d663dcf
>> --- /dev/null
>> +++ b/gcc/testsuite/gcc.target/arm/pr65358.c
>> @@ -0,0 +1,34 @@
>> +/* PR target/65358 */
>> +/* { dg-do compile { target arm*-*-* } } */
>
> No need for the target selector. The fact that it's in gcc.target/arm
> already
> means it will only be run for the arm targets.
> Also, the bug is exposed at runtime, so this should be a dg-do run test.
>
> Cheers,
> Kyrill
>
>> +/* { dg-options "-O2" } */
>> +
>> +struct pack
>> +{
>> +  int fine;
>> +  int victim;
>> +  int killer;
>> +};
>> +
>> +int __attribute__ ((__noinline__, __noclone__)) bar (int a, int b,
>> +struct pack p) {
>> +  if (a != 20 || b != 30)
>> +    __builtin_abort ();
>> +  if (p.fine != 40 || p.victim != 50 || p.killer != 60)
>> +    __builtin_abort ();
>> +  return 0;
>> +}
>> +
>> +int __attribute__ ((__noinline__, __noclone__)) foo (int arg1, int
>> +arg2, int arg3, struct pack p) {
>> +  return bar (arg2, arg3, p);
>> +}
>> +
>> +int main (void)
>> +{
>> +  struct pack p = { 40, 50, 60 };
>> +
>> +  (void) foo (10, 20, 30, p);
>> +  return 0;
>> +}
>> --
>> 1.7.9.5
>>
>
>
>
>
> .
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH][ARM] New testcase to check parameter passing bug
  2015-03-13 12:04 ` Kyrill Tkachov
  2015-03-13 13:04   ` Christophe Lyon
@ 2015-03-13 14:12   ` Segher Boessenkool
  2015-03-16  0:54     ` Honggyu Kim
  1 sibling, 1 reply; 11+ messages in thread
From: Segher Boessenkool @ 2015-03-13 14:12 UTC (permalink / raw)
  To: Kyrill Tkachov; +Cc: 'Honggyu Kim', gcc-patches

On Fri, Mar 13, 2015 at 12:04:28PM -0000, Kyrill Tkachov wrote:
> > diff --git a/gcc/testsuite/gcc.target/arm/pr65358.c
> > b/gcc/testsuite/gcc.target/arm/pr65358.c
> > new file mode 100644
> > index 0000000..d663dcf
> > --- /dev/null
> > +++ b/gcc/testsuite/gcc.target/arm/pr65358.c
> > @@ -0,0 +1,34 @@
> > +/* PR target/65358 */
> > +/* { dg-do compile { target arm*-*-* } } */
> 
> No need for the target selector. The fact that it's in gcc.target/arm
> already
> means it will only be run for the arm targets.
> Also, the bug is exposed at runtime, so this should be a dg-do run test.

Why make this testcase arm-specific at all?  I don't see anything that
wouldn't work on other targets?


Segher

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [PATCH][ARM] New testcase to check parameter passing bug
  2015-03-13 14:12   ` Segher Boessenkool
@ 2015-03-16  0:54     ` Honggyu Kim
  2015-03-18 11:53       ` Kyrill Tkachov
  0 siblings, 1 reply; 11+ messages in thread
From: Honggyu Kim @ 2015-03-16  0:54 UTC (permalink / raw)
  To: 'Segher Boessenkool', 'Kyrill Tkachov', christophe.lyon
  Cc: gcc-patches

Hi,

I have modified and moved the testcase following your comments.
(from gcc.target/arm to gcc.dg)
Please let me know if there's still something to fix more.
I appreciate all your comments.

Honggyu
---
 gcc/testsuite/ChangeLog        |    4 ++++
 gcc/testsuite/gcc.dg/pr65358.c |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/pr65358.c

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5302dbd..5dcf2cf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-16  Honggyu Kim  <hong.gyu.kim@lge.com>
+
+	* gcc.dg/pr65358.c: New test.
+
 2015-03-15  John David Anglin  <danglin@gcc.gnu.org>
 
 	* gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
diff --git a/gcc/testsuite/gcc.dg/pr65358.c b/gcc/testsuite/gcc.dg/pr65358.c
new file mode 100644
index 0000000..3790764
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr65358.c
@@ -0,0 +1,33 @@
+/* { dg-do run */
+/* { dg-options "-O2" } */
+
+struct pack
+{
+  int fine;
+  int victim;
+  int killer;
+};
+
+int __attribute__ ((__noinline__, __noclone__))
+bar (int a, int b, struct pack p)
+{
+  if (a != 20 || b != 30)
+    __builtin_abort ();
+  if (p.fine != 40 || p.victim != 50 || p.killer != 60)
+    __builtin_abort ();
+  return 0;
+}
+
+int __attribute__ ((__noinline__, __noclone__))
+foo (int arg1, int arg2, int arg3, struct pack p)
+{
+  return bar (arg2, arg3, p);
+}
+
+int main (void)
+{
+  struct pack p = { 40, 50, 60 };
+
+  (void) foo (10, 20, 30, p);
+  return 0;
+}
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH][ARM] New testcase to check parameter passing bug
  2015-03-16  0:54     ` Honggyu Kim
@ 2015-03-18 11:53       ` Kyrill Tkachov
  2015-03-19  1:40         ` [PATCH v2] " Honggyu Kim
  0 siblings, 1 reply; 11+ messages in thread
From: Kyrill Tkachov @ 2015-03-18 11:53 UTC (permalink / raw)
  To: Honggyu Kim, 'Segher Boessenkool', christophe.lyon; +Cc: gcc-patches

Hi Honggyu,

On 16/03/15 00:53, Honggyu Kim wrote:
> new file mode 100644
> index 0000000..3790764
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/pr65358.c
> @@ -0,0 +1,33 @@
> +/* { dg-do run */

Forgot to close the brace here after 'run'
Dejagnu happily ignores that and transforms this into a compile-only 
testcase
without that.

Otherwise looks good to me.

Kyrill

> +/* { dg-options "-O2" } */
> +
> +struct pack
> +{
> +  int fine;
> +  int victim;
> +  int killer;
> +};
> +


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH v2] New testcase to check parameter passing bug
  2015-03-18 11:53       ` Kyrill Tkachov
@ 2015-03-19  1:40         ` Honggyu Kim
  2015-03-19  1:58           ` Honggyu Kim
  2015-03-25 13:52           ` Jeff Law
  0 siblings, 2 replies; 11+ messages in thread
From: Honggyu Kim @ 2015-03-19  1:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: kyrylo.tkachov, segher, christophe.lyon, Honggyu Kim

Hi,

I have modified the test-case to check parameter passing bug based on the
comments from Kyrill Tkachov, Christophe Lyon, and Segher Boessenkool
as follows:
 1. move from "gcc.target/arm" to "gcc.dg"
 2. change "dg-do compile" to "dg-do run"

Please let me know if there's still something to fix more.
Thanks for your comment.

Honggyu
---
 gcc/testsuite/ChangeLog        |    4 ++++
 gcc/testsuite/gcc.dg/pr65358.c |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/pr65358.c

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 77d24a1..218f908 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-19  Honggyu Kim  <hong.gyu.kim@lge.com>
+
+	* gcc.dg/pr65358.c: New test.
+
 2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>
 
 	PR c++/59816
diff --git a/gcc/testsuite/gcc.dg/pr65358.c b/gcc/testsuite/gcc.dg/pr65358.c
new file mode 100644
index 0000000..ba89fd4
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr65358.c
@@ -0,0 +1,33 @@
+/* { dg-do run } */
+/* { dg-options "-O2" } */
+
+struct pack
+{
+  int fine;
+  int victim;
+  int killer;
+};
+
+int __attribute__ ((__noinline__, __noclone__))
+bar (int a, int b, struct pack p)
+{
+  if (a != 20 || b != 30)
+    __builtin_abort ();
+  if (p.fine != 40 || p.victim != 50 || p.killer != 60)
+    __builtin_abort ();
+  return 0;
+}
+
+int __attribute__ ((__noinline__, __noclone__))
+foo (int arg1, int arg2, int arg3, struct pack p)
+{
+  return bar (arg2, arg3, p);
+}
+
+int main (void)
+{
+  struct pack p = { 40, 50, 60 };
+
+  (void) foo (10, 20, 30, p);
+  return 0;
+}
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] New testcase to check parameter passing bug
  2015-03-19  1:40         ` [PATCH v2] " Honggyu Kim
@ 2015-03-19  1:58           ` Honggyu Kim
  2015-03-25 13:52           ` Jeff Law
  1 sibling, 0 replies; 11+ messages in thread
From: Honggyu Kim @ 2015-03-19  1:58 UTC (permalink / raw)
  To: gcc-patches; +Cc: kyrylo.tkachov, segher, christophe.lyon

On Thu, Mar 19, 2015 at 10:40:44AM +0900, Honggyu Kim wrote:
> ---
>  gcc/testsuite/ChangeLog        |    4 ++++
>  gcc/testsuite/gcc.dg/pr65358.c |   33 +++++++++++++++++++++++++++++++++
>  2 files changed, 37 insertions(+)
>  create mode 100644 gcc/testsuite/gcc.dg/pr65358.c
> 
> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
> index 77d24a1..218f908 100644
> --- a/gcc/testsuite/ChangeLog
> +++ b/gcc/testsuite/ChangeLog
> 
I'm kind of new to gcc community and I'm used to send a patch throught
git send-email. If you have other preferable way, please let me know.
I will try to follow the format and style more like other gcc patches.
Thanks you all.

Honggyu

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] New testcase to check parameter passing bug
  2015-03-19  1:40         ` [PATCH v2] " Honggyu Kim
  2015-03-19  1:58           ` Honggyu Kim
@ 2015-03-25 13:52           ` Jeff Law
  2015-03-25 14:05             ` Kyrill Tkachov
  1 sibling, 1 reply; 11+ messages in thread
From: Jeff Law @ 2015-03-25 13:52 UTC (permalink / raw)
  To: Honggyu Kim, gcc-patches; +Cc: kyrylo.tkachov, segher, christophe.lyon

On 03/18/15 19:40, Honggyu Kim wrote:
> Hi,
>
> I have modified the test-case to check parameter passing bug based on the
> comments from Kyrill Tkachov, Christophe Lyon, and Segher Boessenkool
> as follows:
>   1. move from "gcc.target/arm" to "gcc.dg"
>   2. change "dg-do compile" to "dg-do run"
>
> Please let me know if there's still something to fix more.
> Thanks for your comment.
>
> Honggyu
> ---
>   gcc/testsuite/ChangeLog        |    4 ++++
>   gcc/testsuite/gcc.dg/pr65358.c |   33 +++++++++++++++++++++++++++++++++
>   2 files changed, 37 insertions(+)
>   create mode 100644 gcc/testsuite/gcc.dg/pr65358.c
>
> diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
> index 77d24a1..218f908 100644
> --- a/gcc/testsuite/ChangeLog
> +++ b/gcc/testsuite/ChangeLog
> @@ -1,3 +1,7 @@
> +2015-03-19  Honggyu Kim  <hong.gyu.kim@lge.com>
> +
> +	* gcc.dg/pr65358.c: New test.
This should be included as part of Kyrill's patch.  If the test goes in 
without Kryill's fix, then it'll just create testsuite noise.

Jeff

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [PATCH v2] New testcase to check parameter passing bug
  2015-03-25 13:52           ` Jeff Law
@ 2015-03-25 14:05             ` Kyrill Tkachov
  2015-03-29 11:36               ` Honggyu Kim
  0 siblings, 1 reply; 11+ messages in thread
From: Kyrill Tkachov @ 2015-03-25 14:05 UTC (permalink / raw)
  To: 'Jeff Law', Honggyu Kim, gcc-patches; +Cc: segher, christophe.lyon



> -----Original Message-----
> From: Jeff Law [mailto:law@redhat.com]
> Sent: 25 March 2015 12:27
> To: Honggyu Kim; gcc-patches@gcc.gnu.org
> Cc: Kyrylo Tkachov; segher@kernel.crashing.org; christophe.lyon@st.com
> Subject: Re: [PATCH v2] New testcase to check parameter passing bug
> 
> On 03/18/15 19:40, Honggyu Kim wrote:
> > Hi,
> >
> > I have modified the test-case to check parameter passing bug based on
> > the comments from Kyrill Tkachov, Christophe Lyon, and Segher
> > Boessenkool as follows:
> >   1. move from "gcc.target/arm" to "gcc.dg"
> >   2. change "dg-do compile" to "dg-do run"
> >
> > Please let me know if there's still something to fix more.
> > Thanks for your comment.
> >
> > Honggyu
> > ---
> >   gcc/testsuite/ChangeLog        |    4 ++++
> >   gcc/testsuite/gcc.dg/pr65358.c |   33
> +++++++++++++++++++++++++++++++++
> >   2 files changed, 37 insertions(+)
> >   create mode 100644 gcc/testsuite/gcc.dg/pr65358.c
> >
> > diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index
> > 77d24a1..218f908 100644
> > --- a/gcc/testsuite/ChangeLog
> > +++ b/gcc/testsuite/ChangeLog
> > @@ -1,3 +1,7 @@
> > +2015-03-19  Honggyu Kim  <hong.gyu.kim@lge.com>
> > +
> > +	* gcc.dg/pr65358.c: New test.
> This should be included as part of Kyrill's patch.  If the test goes in
without
> Kryill's fix, then it'll just create testsuite noise.

I'll make sure to commit this together with my fix (at
https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01014.html)
if it gets approved. I agree that there's no point taking the test in by
itself .

Thanks,
Kyrill

> 
> Jeff
> 



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2] New testcase to check parameter passing bug
  2015-03-25 14:05             ` Kyrill Tkachov
@ 2015-03-29 11:36               ` Honggyu Kim
  0 siblings, 0 replies; 11+ messages in thread
From: Honggyu Kim @ 2015-03-29 11:36 UTC (permalink / raw)
  To: Kyrill Tkachov
  Cc: 'Jeff Law', gcc-patches, segher, christophe.lyon, mikpelinux

On Wed, Mar 25, 2015 at 02:05:37PM -0000, Kyrill Tkachov wrote:
> 
> 
> > -----Original Message-----
> > From: Jeff Law [mailto:law@redhat.com]
> > Sent: 25 March 2015 12:27
> > To: Honggyu Kim; gcc-patches@gcc.gnu.org
> > Cc: Kyrylo Tkachov; segher@kernel.crashing.org; christophe.lyon@st.com
> > Subject: Re: [PATCH v2] New testcase to check parameter passing bug
> > 
> > On 03/18/15 19:40, Honggyu Kim wrote:
> > > Hi,
> > >
> > > I have modified the test-case to check parameter passing bug based on
> > > the comments from Kyrill Tkachov, Christophe Lyon, and Segher
> > > Boessenkool as follows:
> > >   1. move from "gcc.target/arm" to "gcc.dg"
> > >   2. change "dg-do compile" to "dg-do run"
> > >
> > > Please let me know if there's still something to fix more.
> > > Thanks for your comment.
> > >
> > > Honggyu
> > > ---
> > >   gcc/testsuite/ChangeLog        |    4 ++++
> > >   gcc/testsuite/gcc.dg/pr65358.c |   33
> > +++++++++++++++++++++++++++++++++
> > >   2 files changed, 37 insertions(+)
> > >   create mode 100644 gcc/testsuite/gcc.dg/pr65358.c
> > >
> > > diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index
> > > 77d24a1..218f908 100644
> > > --- a/gcc/testsuite/ChangeLog
> > > +++ b/gcc/testsuite/ChangeLog
> > > @@ -1,3 +1,7 @@
> > > +2015-03-19  Honggyu Kim  <hong.gyu.kim@lge.com>
> > > +
> > > +	* gcc.dg/pr65358.c: New test.
> > This should be included as part of Kyrill's patch.  If the test goes in
> without
> > Kryill's fix, then it'll just create testsuite noise.
> 
> I'll make sure to commit this together with my fix (at
> https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01014.html)
> if it gets approved. I agree that there's no point taking the test in by
> itself .
> 
> Thanks,
> Kyrill
> 
> > 
> > Jeff
> > 

I have tested Kyrill's patch and it works fine.
Thanks for all your comments.
Especially, Mikael Pettersson's help for this testcase.

Honggyu

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-03-29 11:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13  2:08 [PATCH][ARM] New testcase to check parameter passing bug Honggyu Kim
2015-03-13 12:04 ` Kyrill Tkachov
2015-03-13 13:04   ` Christophe Lyon
2015-03-13 14:12   ` Segher Boessenkool
2015-03-16  0:54     ` Honggyu Kim
2015-03-18 11:53       ` Kyrill Tkachov
2015-03-19  1:40         ` [PATCH v2] " Honggyu Kim
2015-03-19  1:58           ` Honggyu Kim
2015-03-25 13:52           ` Jeff Law
2015-03-25 14:05             ` Kyrill Tkachov
2015-03-29 11:36               ` Honggyu Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).