Patchwork [v2] Test case for PR55033

login
register
mail settings
Submitter Sebastian Huber
Date May 10, 2013, 2:23 p.m.
Message ID <1368195818-3402-1-git-send-email-sebastian.huber@embedded-brains.de>
Download mbox | patch
Permalink /patch/242996/
State New
Headers show

Comments

Sebastian Huber - May 10, 2013, 2:23 p.m.
v2: Format changes

gcc/testsuite/ChangeLog
2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	PR target/55033
	* gcc.target/powerpc/pr55033.c: New.
---
 gcc/testsuite/gcc.target/powerpc/pr55033.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/powerpc/pr55033.c
Chung-Ju Wu - May 11, 2013, 3:43 a.m.
2013/5/10 Sebastian Huber <sebastian.huber@embedded-brains.de>:
> v2: Format changes
>
> gcc/testsuite/ChangeLog
> 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>
>         PR target/55033
>         * gcc.target/powerpc/pr55033.c: New.
> ---
>  gcc/testsuite/gcc.target/powerpc/pr55033.c |   23 +++++++++++++++++++++++
>  1 files changed, 23 insertions(+), 0 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.target/powerpc/pr55033.c
>
> diff --git a/gcc/testsuite/gcc.target/powerpc/pr55033.c b/gcc/testsuite/gcc.target/powerpc/pr55033.c
> new file mode 100644
> index 0000000..2c1835e
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/powerpc/pr55033.c
> @@ -0,0 +1,23 @@
> +/* { dg-do compile } */
> +/* { dg-require-effective-target powerpc_eabi_ok } */
> +/* { dg-options "-mcpu=8540 -msoft-float -msdata=eabi -G 8 -fno-common" } */
> +
> +extern void f (void);
> +
> +struct s
> +{
> +  int *p;
> +  int *q;
> +};
> +
> +extern int a;
> +
> +extern const struct s c;
> +
> +const struct s c = { &a, 0 };
> +
> +void
> +f (void)
> +{
> +  char buf[4] = { 0, 1, 2, 3 };
> +}
> --
> 1.7.7
>

It seems that you forgot to include powerpc maintainer in the CC list.
Let me do this for you. :)


Best regards,
jasonwucj
David Edelsohn - May 16, 2013, 11:27 p.m.
On Fri, May 10, 2013 at 11:43 PM, Chung-Ju Wu <jasonwucj@gmail.com> wrote:
> 2013/5/10 Sebastian Huber <sebastian.huber@embedded-brains.de>:
> v2: Format changes
>
> gcc/testsuite/ChangeLog
> 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>
>         PR target/55033
>         * gcc.target/powerpc/pr55033.c: New.

The testcase is okay.

Do you have CVS write access or do you need someone to commit the patch for you?

Thanks, David
Sebastian Huber - June 7, 2013, 7:07 a.m.
On 05/17/2013 01:27 AM, David Edelsohn wrote:
> On Fri, May 10, 2013 at 11:43 PM, Chung-Ju Wu <jasonwucj@gmail.com> wrote:
>> 2013/5/10 Sebastian Huber <sebastian.huber@embedded-brains.de>:
>> v2: Format changes
>>
>> gcc/testsuite/ChangeLog
>> 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>>
>>          PR target/55033
>>          * gcc.target/powerpc/pr55033.c: New.
>
> The testcase is okay.
>
> Do you have CVS write access or do you need someone to commit the patch for you?
>
> Thanks, David
>

Sorry, I missed your reply.  I have no write access, so please commit it for me.
Chung-Ju Wu - June 7, 2013, 9:46 a.m.
2013/6/7 Sebastian Huber <sebastian.huber@embedded-brains.de>:
> On 05/17/2013 01:27 AM, David Edelsohn wrote:
>>
>> On Fri, May 10, 2013 at 11:43 PM, Chung-Ju Wu <jasonwucj@gmail.com> wrote:
>>>
>>> 2013/5/10 Sebastian Huber <sebastian.huber@embedded-brains.de>:
>>> v2: Format changes
>>>
>>> gcc/testsuite/ChangeLog
>>> 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
>>>
>>>          PR target/55033
>>>          * gcc.target/powerpc/pr55033.c: New.
>>
>>
>> The testcase is okay.
>>
>> Do you have CVS write access or do you need someone to commit the patch
>> for you?
>>
>> Thanks, David
>>
>
> Sorry, I missed your reply.  I have no write access, so please commit it for
> me.
>

I can help it.

Committed as Rev.199795
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=199795


Best regards,
jasonwucj

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/pr55033.c b/gcc/testsuite/gcc.target/powerpc/pr55033.c
new file mode 100644
index 0000000..2c1835e
--- /dev/null
+++ b/gcc/testsuite/gcc.target/powerpc/pr55033.c
@@ -0,0 +1,23 @@ 
+/* { dg-do compile } */
+/* { dg-require-effective-target powerpc_eabi_ok } */
+/* { dg-options "-mcpu=8540 -msoft-float -msdata=eabi -G 8 -fno-common" } */
+
+extern void f (void);
+
+struct s
+{
+  int *p;
+  int *q;
+};
+
+extern int a;
+
+extern const struct s c;
+
+const struct s c = { &a, 0 };
+
+void
+f (void)
+{
+  char buf[4] = { 0, 1, 2, 3 };
+}