* [SH] Add test case for PR 38621
@ 2012-07-17 20:07 Oleg Endo
2012-07-17 22:26 ` Mike Stump
0 siblings, 1 reply; 3+ messages in thread
From: Oleg Endo @ 2012-07-17 20:07 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
Hello,
The attached patch adds the test case from comment #3 of PR 38621 to the
test suite.
Tested with
make check-gcc RUNTESTFLAGS="compile.exp=pr38621.c --target_board=sh-sim
\{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml,
-m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}"
OK?
Cheers,
Oleg
testsuite/ChangeLog:
target PR/38621
* gcc.c-torture/compile/pr38621.c: New.
[-- Attachment #2: pr38621_testcase.patch --]
[-- Type: text/x-patch, Size: 451 bytes --]
Index: gcc/testsuite/gcc.c-torture/compile/pr38621.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/pr38621.c (revision 0)
+++ gcc/testsuite/gcc.c-torture/compile/pr38621.c (revision 0)
@@ -0,0 +1,17 @@
+/* PR target/38621 */
+struct s
+{
+ char a[512];
+ int b;
+ int c;
+};
+
+long long
+foo (struct s *p, int m, int r)
+{
+ if (r == m)
+ p->b = 3;
+ p->c = 1;
+ return m;
+}
+
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SH] Add test case for PR 38621
2012-07-17 20:07 [SH] Add test case for PR 38621 Oleg Endo
@ 2012-07-17 22:26 ` Mike Stump
2012-07-18 7:58 ` Oleg Endo
0 siblings, 1 reply; 3+ messages in thread
From: Mike Stump @ 2012-07-17 22:26 UTC (permalink / raw)
To: Oleg Endo; +Cc: gcc-patches
On Jul 17, 2012, at 1:06 PM, Oleg Endo wrote:
> The attached patch adds the test case from comment #3 of PR 38621 to the
> test suite.
>
> Tested with
> make check-gcc RUNTESTFLAGS="compile.exp=pr38621.c --target_board=sh-sim
> \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml,
> -m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}"
>
> OK?
Gosh, the code looks so, portable. :-)
Ok. I'd say nix the blank line at the end of the file.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SH] Add test case for PR 38621
2012-07-17 22:26 ` Mike Stump
@ 2012-07-18 7:58 ` Oleg Endo
0 siblings, 0 replies; 3+ messages in thread
From: Oleg Endo @ 2012-07-18 7:58 UTC (permalink / raw)
To: Mike Stump; +Cc: gcc-patches
On Tue, 2012-07-17 at 15:26 -0700, Mike Stump wrote:
> On Jul 17, 2012, at 1:06 PM, Oleg Endo wrote:
> > The attached patch adds the test case from comment #3 of PR 38621 to the
> > test suite.
> >
> > Tested with
> > make check-gcc RUNTESTFLAGS="compile.exp=pr38621.c --target_board=sh-sim
> > \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml,
> > -m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}"
> >
> > OK?
>
> Gosh, the code looks so, portable. :-)
>
> Ok. I'd say nix the blank line at the end of the file.
Committed without the blank line as rev 189605.
Cheers,
Oleg
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-18 7:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 20:07 [SH] Add test case for PR 38621 Oleg Endo
2012-07-17 22:26 ` Mike Stump
2012-07-18 7:58 ` Oleg Endo
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).