Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472890 - sys-devel/llvm: clang does not support -frecord-gcc-switches
Summary: sys-devel/llvm: clang does not support -frecord-gcc-switches
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-10 16:57 UTC by Rick Farina (Zero_Chaos)
Modified: 2018-03-29 08:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Farina (Zero_Chaos) gentoo-dev 2013-06-10 16:57:14 UTC
I'm using -frecord-gcc-switches with gcc to detect when CFLAGS are not being respected (as everyone should be).  Recently I started testing with clang and it seems this feature is not implemented and causes errors with our QA check

clang: clang: warning: warning: argument unused during compilation: '-frecord-gcc-switches'
argument unused during compilation: '-frecord-gcc-switches'
Comment 1 Richard Yao (RETIRED) gentoo-dev 2013-06-10 19:19:28 UTC
Documentation on this feature is available on the GCC wiki:

http://gcc.gnu.org/wiki/Record_GCC_command_line_switches_in_object_files

It should not be hard to implement. Someone just needs to sit down for a few days to do it.
Comment 2 Paul Osmialowski 2016-04-22 17:22:43 UTC
Did anyone actually attempt to implement this?!
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-08-16 16:36:09 UTC
@zzlei, feel like attempting to do this? ;-)
Comment 4 zhanglei.april 2016-08-17 10:47:32 UTC
(In reply to Michał Górny from comment #3)
> @zzlei, feel like attempting to do this? ;-)

This seems not as trivial as my previous patches to clang. I'll take a serious look when I've got time.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-29 07:42:05 UTC
This is fully relying on someone implementing it upstream. No point in tracking it downstream.