public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/15688] New: Preprocessor gives 'missing terminating " character' error despite #ifdef
@ 2004-05-28  5:26 dgun at umpire dot com
  2004-05-28  5:47 ` [Bug preprocessor/15688] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dgun at umpire dot com @ 2004-05-28  5:26 UTC (permalink / raw)
  To: gcc-bugs

------- compile output --------
# gcc -v -save-temps test.c
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040401)
 /usr/lib/gcc-lib/i486-linux/3.3.3/cc1 -E -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 test.c test.i
ignoring nonexistent directory "/usr/i486-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i486-linux/3.3.3/include
 /usr/include
End of search list.
test.c:6:5: missing terminating " character
test.c:8:1: missing terminating " character

-------- source file(s) ---------
--- begin test.c
/* Shouldn't cpp (preprocessor) completely ignore what's in the #ifdef ??? */

int myfunc()
{
#ifdef HPUX
asm("
  /* some hpux asm code */
");
#else
  /* some normal code */
#endif
  return 0;
}

int main()
{
  return myfunc();
}
--- end test.c

--- begin test.i
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"


int myfunc()
{







  return 0;
}

int main()
{
  return myfunc();
}
--- end test.i

-- 
           Summary: Preprocessor gives 'missing terminating " character'
                    error despite #ifdef
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dgun at umpire dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15688


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

* [Bug preprocessor/15688] Preprocessor gives 'missing terminating " character' error despite #ifdef
  2004-05-28  5:26 [Bug preprocessor/15688] New: Preprocessor gives 'missing terminating " character' error despite #ifdef dgun at umpire dot com
@ 2004-05-28  5:47 ` pinskia at gcc dot gnu dot org
  2004-05-28  6:16 ` dgun at umpire dot com
  2004-05-28  9:33 ` pinskia at physics dot uc dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-28  5:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-27 17:38 -------
Invalid as things insided the #ifdef still have to be tokens.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15688


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

* [Bug preprocessor/15688] Preprocessor gives 'missing terminating " character' error despite #ifdef
  2004-05-28  5:26 [Bug preprocessor/15688] New: Preprocessor gives 'missing terminating " character' error despite #ifdef dgun at umpire dot com
  2004-05-28  5:47 ` [Bug preprocessor/15688] " pinskia at gcc dot gnu dot org
@ 2004-05-28  6:16 ` dgun at umpire dot com
  2004-05-28  9:33 ` pinskia at physics dot uc dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: dgun at umpire dot com @ 2004-05-28  6:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dgun at umpire dot com  2004-05-27 17:42 -------
(In reply to comment #1)
> Invalid as things insided the #ifdef still have to be tokens.

This code worked in gcc 2.96.  Does this mean 2.96 was implemented incorrectly?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15688


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

* [Bug preprocessor/15688] Preprocessor gives 'missing terminating " character' error despite #ifdef
  2004-05-28  5:26 [Bug preprocessor/15688] New: Preprocessor gives 'missing terminating " character' error despite #ifdef dgun at umpire dot com
  2004-05-28  5:47 ` [Bug preprocessor/15688] " pinskia at gcc dot gnu dot org
  2004-05-28  6:16 ` dgun at umpire dot com
@ 2004-05-28  9:33 ` pinskia at physics dot uc dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at physics dot uc dot edu @ 2004-05-28  9:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2004-05-27 18:32 -------
Subject: Re:  Preprocessor gives 'missing

> 
> ----- Original Message -----
> From: "dgun at umpire dot com" <gcc-bugzilla@gcc.gnu.org>
> Date: 27 May 2004 17:42:51 -0000
> To: dgun@umpire.com
> Subject: [Bug preprocessor/15688] Preprocessor gives 'missing terminating " character' error despite #ifdef
> 
> 
> ------- Additional Comments From dgun at umpire dot com  2004-05-27 17:42 -------
> (In reply to comment #1)
> > Invalid as things insided the #ifdef still have to be tokens.
> 
> This code worked in gcc 2.96.  Does this mean 2.96 was implemented incorrectly?

Well really 2.96 and some later versions had multi-line strings which was removed
which is what is giving this error.

Thanks,
Andrew Pinski




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15688


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

end of thread, other threads:[~2004-05-27 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-28  5:26 [Bug preprocessor/15688] New: Preprocessor gives 'missing terminating " character' error despite #ifdef dgun at umpire dot com
2004-05-28  5:47 ` [Bug preprocessor/15688] " pinskia at gcc dot gnu dot org
2004-05-28  6:16 ` dgun at umpire dot com
2004-05-28  9:33 ` pinskia at physics dot uc dot edu

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).