This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/25175] Meaningless pre-processor lineno comments inserted



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-11-30 02:24 -------
(In reply to comment #2)
> That is rather unfortunate.
> Because if you use the -H option then you will get different output depending
> on whether you use "-g" or not.  So while you might be helping the
> "-save-temps" case you have upset the "-H" case.

HUH?
earth:~>gcc -V4.0.0 -H t.c -S -save-temps -E -o t.i -g
. /usr/include/stdio.h
.. /usr/include/features.h
... /usr/include/sys/cdefs.h
... /usr/include/gnu/stubs.h
.. /home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stddef.h
.. /usr/include/bits/types.h
... /usr/include/bits/wordsize.h
... /home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stddef.h
... /usr/include/bits/typesizes.h
.. /usr/include/libio.h
... /usr/include/_G_config.h
.... /home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stddef.h
.... /usr/include/wchar.h
.....
/home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stddef.h
..... /usr/include/bits/wchar.h
.... /usr/include/gconv.h
..... /usr/include/wchar.h
......
/home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stddef.h
.....
/home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stddef.h
... /home/gates/pinskia/linux/lib/gcc/i686-pc-linux-gnu/4.0.0/include/stdarg.h
.. /usr/include/bits/stdio_lim.h
.. /usr/include/bits/sys_errlist.h


that is for the simple "#include <stdio.h> int i;" case.  Can you show where -H
will give you the CWD?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]