https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #22 from Marek Polacek mpolacek at gcc dot gnu.org ---
Author: mpolacek
Date: Thu Jul 24 09:00:13 2014
New Revision: 212972
URL: https://gcc.gnu.org/viewcvs?rev=212972root=gccview=rev
Log:
PR c/57653
* c-opts.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
CC||jsm28 at gcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #21 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
Once you are in trunk, you can ask the release managers to backport it to the
GCC 4.8 branch.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #16 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #17 from Allan McRae allan at archlinux dot org ---
Created attachment 30359
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30359action=edit
gdb log when using -include
When using -include instead of -imacros, the trail is:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
Status|WAITING |NEW
---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #19 from Allan McRae allan at archlinux dot org ---
That patch works. With -imacros foo.h:
LC_ENTER foo.c
LC_RENAME command-line
LC_ENTER foo.h
LC_LEAVE 0x0
LC_ENTER /usr/include/stdc-predef.h
LC_LEAVE 0x0
LC_RENAME foo.c
-
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #14 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(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/bugzilla/show_bug.cgi?id=57653
--- Comment #15 from Allan McRae allan at archlinux dot org ---
with -ffreestanding
LC_ENTER foo.c
LC_RENAME command-line
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #8 from Allan McRae allan at archlinux dot org ---
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 command-line
LC_ENTER /usr/include/stdc-predef.h
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |WAITING
---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #11 from Allan McRae allan at archlinux dot org ---
Created attachment 30345
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30345action=edit
log of gdb session
Here is the log from my gdb session.
Arch builds with no patches,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #12 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #13 from Allan McRae allan at archlinux dot org ---
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #7 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
CC||manu at gcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #2 from Allan McRae allan at archlinux dot org ---
# echo int main() { return } foo.c
# touch foo.h
# gcc -imacros foo.h foo.c
command-line: In function ‘main’:
command-line:1:21: error: expected expression before ‘}’ token
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #3 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
(In reply to Allan McRae from comment #2)
# echo int main() { return } foo.c
# touch foo.h
# gcc -imacros foo.h foo.c
command-line: In function ‘main’:
command-line:1:21:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #4 from Manuel López-Ibáñez manu at gcc dot gnu.org ---
I mean in GCC 4.9.0 (trunk), (that revision is the latest I have built).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #5 from Allan McRae allan at archlinux dot org ---
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:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
--- Comment #6 from Allan McRae allan at archlinux dot org ---
I have also confirmed this issue on Fedora rawhide.
gcc 4.8.1 20130603 (Red Hat 4.8.1-1)
22 matches
Mail list logo