public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16999] New: #ident stopped working
@ 2004-08-12  4:14 leisner at rochester dot rr dot com
  2004-08-12  4:22 ` [Bug c/16999] " leisner at rochester dot rr dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: leisner at rochester dot rr dot com @ 2004-08-12  4:14 UTC (permalink / raw)
  To: gcc-bugs

 

-- 
           Summary: #ident stopped working
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: leisner at rochester dot rr dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


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


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

* [Bug c/16999] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
@ 2004-08-12  4:22 ` leisner at rochester dot rr dot com
  2004-08-12  4:59 ` [Bug c/16999] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: leisner at rochester dot rr dot com @ 2004-08-12  4:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From leisner at rochester dot rr dot com  2004-08-12 04:22 -------
Created an attachment (id=6917)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6917&action=view)
bug with gcc 3.4.1


-- 


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


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

* [Bug c/16999] [3.4 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
  2004-08-12  4:22 ` [Bug c/16999] " leisner at rochester dot rr dot com
@ 2004-08-12  4:59 ` pinskia at gcc dot gnu dot org
  2004-08-12  5:56 ` leisner at rochester dot rr dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-12  4:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-12 04:59 -------
It works for me on 3.4.0:
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_4/bin/gcc -S -o - pr16999.c -v
Reading specs from /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../configure --prefix=/home/gates/pinskia/ia32_linux_gcc3_4 --enable-__cxa_atexit
Thread model: posix
gcc version 3.4.0
 /home/gates/pinskia/ia32_linux_gcc3_4/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1 -quiet -v 
pr16999.c -quiet -dumpbase pr16999.c -mtune=pentiumpro -auxbase-strip - -version -o -
ignoring nonexistent directory "/home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/
3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /home/gates/pinskia/ia32_linux_gcc3_4/include
 /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/include
 /usr/include
End of search list.
GNU C version 3.4.0 (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.0.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128866
        .file   "pr16999.c"
        .ident  "this is an ident"
#APP
        .ident  "trying asm "
        .section        .note.GNU-stack,"",@progbits
        .ident  "GCC: (GNU) 3.4.0"

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
      Known to work|                            |3.4.0 3.5.0
            Summary|#ident stopped working      |[3.4 Regression] #ident
                   |                            |stopped working
   Target Milestone|---                         |3.4.2


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


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

* [Bug c/16999] [3.4 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
  2004-08-12  4:22 ` [Bug c/16999] " leisner at rochester dot rr dot com
  2004-08-12  4:59 ` [Bug c/16999] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2004-08-12  5:56 ` leisner at rochester dot rr dot com
  2004-08-12  6:01 ` [Bug c/16999] [3.4/3.5 " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: leisner at rochester dot rr dot com @ 2004-08-12  5:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From leisner at rochester dot rr dot com  2004-08-12 05:56 -------
(In reply to comment #2)
> It works for me on 3.4.0:
> tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_4/bin/gcc -S -o - pr16999.c -v
> Reading specs from
/home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
> Configured with: ../configure --prefix=/home/gates/pinskia/ia32_linux_gcc3_4
--enable-__cxa_atexit
> Thread model: posix
> gcc version 3.4.0
>  /home/gates/pinskia/ia32_linux_gcc3_4/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1
-quiet -v 
> pr16999.c -quiet -dumpbase pr16999.c -mtune=pentiumpro -auxbase-strip -
-version -o -
> ignoring nonexistent directory
"/home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/
> 3.4.0/../../../../i686-pc-linux-gnu/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/include
>  /home/gates/pinskia/ia32_linux_gcc3_4/include
>  /home/gates/pinskia/ia32_linux_gcc3_4/lib/gcc/i686-pc-linux-gnu/3.4.0/include
>  /usr/include
> End of search list.
> GNU C version 3.4.0 (i686-pc-linux-gnu)
>         compiled by GNU C version 3.4.0.
> GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128866
>         .file   "pr16999.c"
>         .ident  "this is an ident"
> #APP
>         .ident  "trying asm "
>         .section        .note.GNU-stack,"",@progbits
>         .ident  "GCC: (GNU) 3.4.0"



try it with -save-temps -- this seems to have a bearing...
With -save-temps, we also get:
foo.c:1:10: warning: extra tokens at end of #ident directive


-- 


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


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

* [Bug c/16999] [3.4/3.5 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (2 preceding siblings ...)
  2004-08-12  5:56 ` leisner at rochester dot rr dot com
@ 2004-08-12  6:01 ` pinskia at gcc dot gnu dot org
  2004-08-23 19:42 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-12  6:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-12 06:01 -------
Confirmed, interesting.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0 3.5.0
      Known to work|3.4.0 3.5.0                 |
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-12 06:01:47
               date|                            |
            Summary|[3.4 Regression] #ident     |[3.4/3.5 Regression] #ident
                   |stopped working             |stopped working


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


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

* [Bug c/16999] [3.4/3.5 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (3 preceding siblings ...)
  2004-08-12  6:01 ` [Bug c/16999] [3.4/3.5 " pinskia at gcc dot gnu dot org
@ 2004-08-23 19:42 ` mmitchel at gcc dot gnu dot org
  2004-08-27  6:24 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-23 19:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-23 19:42 -------
Postponed until GCC 3.4.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.3


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


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

* [Bug c/16999] [3.4/3.5 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (4 preceding siblings ...)
  2004-08-23 19:42 ` mmitchel at gcc dot gnu dot org
@ 2004-08-27  6:24 ` pinskia at gcc dot gnu dot org
  2004-08-27  6:26 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27  6:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-27 06:24 -------
*** Bug 17206 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sobomax at freebsd dot org


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


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

* [Bug c/16999] [3.4/3.5 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (5 preceding siblings ...)
  2004-08-27  6:24 ` pinskia at gcc dot gnu dot org
@ 2004-08-27  6:26 ` pinskia at gcc dot gnu dot org
  2004-10-08 17:04 ` [Bug c/16999] [3.4/4.0 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-27  6:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-27 06:26 -------
Note that was a simple patch in 17206 for fixing the problem:


--- src/contrib/gcc/c-ppoutput.c        2004/08/26 14:10:04     1.1
+++ src/contrib/gcc/c-ppoutput.c        2004/08/26 14:10:32
@@ -292,7 +292,7 @@
          const cpp_string *str)
 {
   maybe_print_line (print.map, line);
-  fprintf (print.outf, "#ident \"%s\"\n", str->text);
+  fprintf (print.outf, "#ident %s\n", str->text);
   print.line++;
 }

-- 


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


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

* [Bug c/16999] [3.4/4.0 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (6 preceding siblings ...)
  2004-08-27  6:26 ` pinskia at gcc dot gnu dot org
@ 2004-10-08 17:04 ` pinskia at gcc dot gnu dot org
  2004-10-08 18:37 ` [Bug c/16999] [3.4 " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 17:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-08 17:04 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00756.html>.

Mine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch
      Known to fail|3.4.0 4.0                   |3.4.0 4.0.0


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


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

* [Bug c/16999] [3.4 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (7 preceding siblings ...)
  2004-10-08 17:04 ` [Bug c/16999] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-08 18:37 ` pinskia at gcc dot gnu dot org
  2004-10-08 18:37 ` [Bug c/16999] [3.4/4.0 " cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-08 18:37 -------
Fixed on the mainline, will commit the patch to 3.4 branch once I get home.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.0 4.0.0                 |3.4.0
      Known to work|3.3.3                       |3.3.3 4.0.0
            Summary|[3.4/4.0 Regression] #ident |[3.4 Regression] #ident
                   |stopped working             |stopped working


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


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

* [Bug c/16999] [3.4/4.0 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (8 preceding siblings ...)
  2004-10-08 18:37 ` [Bug c/16999] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-08 18:37 ` cvs-commit at gcc dot gnu dot org
  2004-10-09  0:23 ` [Bug c/16999] [3.4 " pinskia at gcc dot gnu dot org
  2004-10-09  0:25 ` cvs-commit at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-08 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-08 18:37 -------
Subject: Bug 16999

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-10-08 18:37:08

Modified files:
	gcc            : ChangeLog c-ppoutput.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/cpp: ident-1.c 

Log message:
	2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/16999
	* c-ppoutput.c (cb_ident): Don't quote string as it is already
	quoted.
	
	* gcc.dg/cpp/ident-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5809&r2=2.5810
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-ppoutput.c.diff?cvsroot=gcc&r1=1.22&r2=1.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4413&r2=1.4414
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/ident-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c/16999] [3.4 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (9 preceding siblings ...)
  2004-10-08 18:37 ` [Bug c/16999] [3.4/4.0 " cvs-commit at gcc dot gnu dot org
@ 2004-10-09  0:23 ` pinskia at gcc dot gnu dot org
  2004-10-09  0:25 ` cvs-commit at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09  0:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-09 00:23 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c/16999] [3.4 Regression] #ident stopped working
  2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
                   ` (10 preceding siblings ...)
  2004-10-09  0:23 ` [Bug c/16999] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-09  0:25 ` cvs-commit at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-09  0:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-09 00:25 -------
Subject: Bug 16999

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	pinskia@gcc.gnu.org	2004-10-09 00:25:11

Modified files:
	gcc            : ChangeLog c-ppoutput.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/cpp: ident-1.c 

Log message:
	2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	* gcc.dg/cpp/ident-1.c: New test.
	
	2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/16999
	* c-ppoutput.c (cb_ident): Don't quote string as it is already
	quoted.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.650&r2=2.2326.2.651
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-ppoutput.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.11.12.2&r2=1.11.12.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.280&r2=1.3389.2.281
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/ident-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.2.2.1



-- 


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


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

end of thread, other threads:[~2004-10-09  0:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12  4:14 [Bug c/16999] New: #ident stopped working leisner at rochester dot rr dot com
2004-08-12  4:22 ` [Bug c/16999] " leisner at rochester dot rr dot com
2004-08-12  4:59 ` [Bug c/16999] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-08-12  5:56 ` leisner at rochester dot rr dot com
2004-08-12  6:01 ` [Bug c/16999] [3.4/3.5 " pinskia at gcc dot gnu dot org
2004-08-23 19:42 ` mmitchel at gcc dot gnu dot org
2004-08-27  6:24 ` pinskia at gcc dot gnu dot org
2004-08-27  6:26 ` pinskia at gcc dot gnu dot org
2004-10-08 17:04 ` [Bug c/16999] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-08 18:37 ` [Bug c/16999] [3.4 " pinskia at gcc dot gnu dot org
2004-10-08 18:37 ` [Bug c/16999] [3.4/4.0 " cvs-commit at gcc dot gnu dot org
2004-10-09  0:23 ` [Bug c/16999] [3.4 " pinskia at gcc dot gnu dot org
2004-10-09  0:25 ` cvs-commit at gcc dot gnu dot org

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