Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 472890

Summary: sys-devel/llvm: clang does not support -frecord-gcc-switches
Product: Gentoo Linux Reporter: Rick Farina (Zero_Chaos) <zerochaos>
Component: [OLD] Core systemAssignee: LLVM support project <llvm>
Status: RESOLVED UPSTREAM    
Severity: normal CC: mgorny, newchief
Priority: Normal    
Version: autobuilds   
Hardware: All   
OS: Linux   
See Also: http://llvm.org/bugs/show_bug.cgi?id=16291
Whiteboard:
Package list:
Runtime testing required: ---

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.