diff options
| author | Steven Bosscher <steven@gcc.gnu.org> | 2006-09-17 13:14:53 +0000 |
|---|---|---|
| committer | Steven Bosscher <steven@gcc.gnu.org> | 2006-09-17 13:14:53 +0000 |
| commit | 69723be2b39c9517ebe919b6f81b9b3b78d44b0a (patch) | |
| tree | db0c9c78d97e02a45d563a0b352ac781b1e79a92 /gcc/testsuite/gcc.dg | |
| parent | 7a7d38044dabb00eee2089a951a2da5afe9d548e (diff) | |
| download | gcc-69723be2b39c9517ebe919b6f81b9b3b78d44b0a.zip gcc-69723be2b39c9517ebe919b6f81b9b3b78d44b0a.tar.gz gcc-69723be2b39c9517ebe919b6f81b9b3b78d44b0a.tar.bz2 | |
re PR c/25993 (-std= produces incorrect preprocessor output for .S)
gcc/
PR c/25993
* c-opts.c (c_common_handle_option): Ignore the -std options
if the input language is assembly.
testsuite/
PR c/25993
* gcc.dg/pr25993.c: New test.
From-SVN: r117005
Diffstat (limited to 'gcc/testsuite/gcc.dg')
| -rw-r--r-- | gcc/testsuite/gcc.dg/pr25993.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr25993.c b/gcc/testsuite/gcc.dg/pr25993.c new file mode 100644 index 0000000..392bbed --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr25993.c @@ -0,0 +1,14 @@ +/* { dg-do assemble { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-std=c99 -x assembler-with-cpp" } */ + +#ifndef __ASSEMBLER__ +extern int func(void); +#else +.global func +.type func,%function +.align 4 +func: + ret +.size func,.-func +#endif + |
