public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/54163] New: Ignore -l[lib] option on PCH generation
@ 2012-08-03 7:44 pavel.v.chupin at gmail dot com
2023-05-19 6:58 ` [Bug driver/54163] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: pavel.v.chupin at gmail dot com @ 2012-08-03 7:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54163
Bug #: 54163
Summary: Ignore -l[lib] option on PCH generation
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: pch
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pavel.v.chupin@gmail.com
This case doesn't work:
$ g++ t.H -o t.H.gch -lfoo -L.
/usr/lib/gcc/x86_64-redhat-linux/4.7.0/../../../../lib64/crt1.o: In function
`_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Adding -c solve the issue:
$ g++ t.H -o t.H.gch -lfoo -L. -c
Nevertheless without -l switch gcc generates precompiled header even without -c
and doesn't complain on main. All these cases works fine:
$ g++ t.H -o t.H.gch -c
$ g++ t.H -o t.H.gch
$ g++ t.H
Does it make sense to allow PCH generation with -l?
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug driver/54163] Ignore -l[lib] option on PCH generation
2012-08-03 7:44 [Bug pch/54163] New: Ignore -l[lib] option on PCH generation pavel.v.chupin at gmail dot com
@ 2023-05-19 6:58 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-19 6:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54163
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=45536
Component|pch |driver
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is basically the same issue as PR 45536 I think.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-19 6:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-03 7:44 [Bug pch/54163] New: Ignore -l[lib] option on PCH generation pavel.v.chupin at gmail dot com
2023-05-19 6:58 ` [Bug driver/54163] " pinskia at gcc dot gnu.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).