[Bug c/57653] filename information discarded when using -imacros

2013-06-19 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org Co

[Bug c/57653] filename information discarded when using -imacros

2013-06-19 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #2 from Allan McRae --- # echo "int main() { return }" > foo.c # touch foo.h # gcc -imacros foo.h foo.c : In function ‘main’: :1:21: error: expected expression before ‘}’ token

[Bug c/57653] filename information discarded when using -imacros

2013-06-19 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #3 from Manuel López-Ibáñez --- (In reply to Allan McRae from comment #2) > # echo "int main() { return }" > foo.c > # touch foo.h > # gcc -imacros foo.h foo.c > : In function ‘main’: > :1:21: error: expected expression before ‘}’ tok

[Bug c/57653] filename information discarded when using -imacros

2013-06-19 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #4 from Manuel López-Ibáñez --- I mean in GCC 4.9.0 (trunk), (that revision is the latest I have built).

[Bug c/57653] filename information discarded when using -imacros

2013-06-19 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #5 from Allan McRae --- I still get this with r200224 # gcc-4.9 -v Using built-in specs. COLLECT_GCC=gcc-4.9 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with:

[Bug c/57653] filename information discarded when using -imacros

2013-06-19 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #6 from Allan McRae --- I have also confirmed this issue on Fedora rawhide. gcc 4.8.1 20130603 (Red Hat 4.8.1-1)

[Bug c/57653] filename information discarded when using -imacros

2013-06-20 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #7 from Manuel López-Ibáñez --- (In reply to Allan McRae from comment #6) > I have also confirmed this issue on Fedora rawhide. > > gcc 4.8.1 20130603 (Red Hat 4.8.1-1) What I would do to investigate this issue is to put a breakpoint

[Bug c/57653] filename information discarded when using -imacros

2013-06-23 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #8 from Allan McRae --- I really have no idea what I am looking for... but adding a breakpoint at linemap_add I see (reason, file): LC_ENTER "foo.c" LC_RENAME "" LC_ENTER "/usr/include/stdc-predef.h" LC_LEAVE 0x0 LC_RENAME "foo.c" <-

[Bug c/57653] filename information discarded when using -imacros

2013-06-23 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/57653] filename information discarded when using -imacros

2013-06-23 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 Manuel López-Ibáñez changed: What|Removed |Added Status|NEW |WAITING --- Comment #10 from Manuel

[Bug c/57653] filename information discarded when using -imacros

2013-06-23 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #11 from Allan McRae --- Created attachment 30345 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30345&action=edit log of gdb session Here is the log from my gdb session. Arch builds with no patches, just a could of small sed li

[Bug c/57653] filename information discarded when using -imacros

2013-06-23 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #12 from Manuel López-Ibáñez --- (In reply to Allan McRae from comment #11) > Created attachment 30345 [details] > log of gdb session > > Here is the log from my gdb session. > > Arch builds with no patches, just a could of small sed

[Bug c/57653] filename information discarded when using -imacros

2013-06-23 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #13 from Allan McRae --- The Arch gcc does the full bootstrap. The debug build I am using was compiled with DEBUG_CFLAGS="-g -fvar-tracking-assignments". The file "/usr/include/stdc-predef.h" is from glibc (v2.17 on Arch) and is spec

[Bug c/57653] filename information discarded when using -imacros

2013-06-24 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #14 from Manuel López-Ibáñez --- (In reply to Allan McRae from comment #13) > The file "/usr/include/stdc-predef.h" is from glibc (v2.17 on Arch) and is > specifically mentioned as being preincluded in > http://gcc.gnu.org/gcc-4.8/port

[Bug c/57653] filename information discarded when using -imacros

2013-06-24 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #15 from Allan McRae --- with -ffreestanding LC_ENTER "foo.c" LC_RENAME "" LC_ENTER "foo.h" LC_LEAVE 0x0 LC_RENAME "foo.c" <- correct output printed here LC_LEAVE 0x0 so std-predef.h is not included. I tried with -include foo.h and

[Bug c/57653] filename information discarded when using -imacros

2013-06-25 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #16 from Manuel López-Ibáñez --- (In reply to Allan McRae from comment #15) > > I tried with -include foo.h and a breakpoint in push_command_line_include... > I just stepped through from that breakpoint and saw cpp_push_default_includ

[Bug c/57653] filename information discarded when using -imacros

2013-06-25 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #17 from Allan McRae --- Created attachment 30359 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30359&action=edit gdb log when using -include When using -include instead of -imacros, the trail is: LC_ENTER foo.c LC_RENAME L

[Bug c/57653] filename information discarded when using -imacros

2013-06-25 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 Manuel López-Ibáñez changed: What|Removed |Added Status|WAITING |NEW --- Comment #18 from Manuel Lóp

[Bug c/57653] filename information discarded when using -imacros

2013-06-25 Thread allan at archlinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #19 from Allan McRae --- That patch works. With -imacros foo.h: LC_ENTER foo.c LC_RENAME LC_ENTER foo.h LC_LEAVE 0x0 LC_ENTER /usr/include/stdc-predef.h LC_LEAVE 0x0 LC_RENAME foo.c <- correct output LC_LEAVE 0x0 All other co

[Bug c/57653] filename information discarded when using -imacros

2013-06-26 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 Manuel López-Ibáñez changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Commen

[Bug c/57653] filename information discarded when using -imacros

2013-06-26 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #21 from Manuel López-Ibáñez --- Once you are in trunk, you can ask the release managers to backport it to the GCC 4.8 branch.

[Bug c/57653] filename information discarded when using -imacros

2014-07-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653 --- Comment #22 from Marek Polacek --- Author: mpolacek Date: Thu Jul 24 09:00:13 2014 New Revision: 212972 URL: https://gcc.gnu.org/viewcvs?rev=212972&root=gcc&view=rev Log: PR c/57653 * c-opts.c (c_finish_options): If -imacros is in ef