Commit d3f1be5d by Eric Botcazou Committed by Eric Botcazou

pr27528.c: Use empty templates.

	* gcc.c-torture/compile/pr27528.c: Use empty templates.

From-SVN: r119991
parent fcd44320
2006-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/compile/pr27528.c: Use empty templates.
2006-12-17 Steven G. Kargl <kargl@gcc.gnu.org> 2006-12-17 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/30207 PR fortran/30207
...@@ -6,13 +6,13 @@ int x[2] = { 1, 2 }; ...@@ -6,13 +6,13 @@ int x[2] = { 1, 2 };
static inline void __attribute__((__always_inline__)) static inline void __attribute__((__always_inline__))
insn1 (int x) insn1 (int x)
{ {
asm volatile ("# %0 %1" :: "n" (x), "i" (x)); asm volatile ("" :: "n" (x), "i" (x));
} }
static inline void __attribute__((__always_inline__)) static inline void __attribute__((__always_inline__))
insn2 (const void *x) insn2 (const void *x)
{ {
asm volatile ("# %0 %1" :: "s" (x), "i" (x)); asm volatile ("" :: "s" (x), "i" (x));
} }
#endif #endif
...@@ -29,10 +29,10 @@ foo (void) ...@@ -29,10 +29,10 @@ foo (void)
insn2 (&x[1]); insn2 (&x[1]);
insn2 ("string"); insn2 ("string");
#endif #endif
asm volatile ("# %0 %1" :: "s" (x), "i" (x)); asm volatile ("" :: "s" (x), "i" (x));
/* At the time of writing, &x[1] is decomposed before reaching expand /* At the time of writing, &x[1] is decomposed before reaching expand
when compiling with -O0. */ when compiling with -O0. */
asm volatile ("# %0 %1" :: "s" ("string"), "i" ("string")); asm volatile ("" :: "s" ("string"), "i" ("string"));
asm volatile ("# %0 %1" :: "s" (__FILE__), "i" (__FILE__)); asm volatile ("" :: "s" (__FILE__), "i" (__FILE__));
asm volatile ("# %0 %1" :: "s" (__FUNCTION__), "i" (__FUNCTION__)); asm volatile ("" :: "s" (__FUNCTION__), "i" (__FUNCTION__));
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment