Bug 6008 - Patch: Clang does not honor -dN
Summary: Patch: Clang does not honor -dN
Status: NEW
Alias: None
Product: uClibc
Classification: Unclassified
Component: Other (show other bugs)
Version: 0.9.33.3
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 03:50 UTC by Jeffrey Walton
Modified: 2013-02-28 19:16 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Walton 2013-02-28 03:50:18 UTC
$ diff -uN extra/scripts/gen_bits_syscall_h-orig.sh extra/scripts/gen_bits_syscall_h.sh
--- extra/scripts/gen_bits_syscall_h-orig.sh	2013-02-27 22:43:03.053750592 -0500
+++ extra/scripts/gen_bits_syscall_h.sh	2013-02-27 22:39:38.160734579 -0500
@@ -18,6 +18,7 @@
 INCLUDE_OPTS="-nostdinc -I${KERNEL_HEADERS}"
 
 case $CC in
+*clang*) CC_SYSNUM_ARGS="-dM" ;;
 *icc*) CC_SYSNUM_ARGS="-dM" ;;
 *)     CC_SYSNUM_ARGS="-dN" ;;
 esac

Also, 'icc' is Intel's C compiler. To pick up the Intel C++ compiler, the project might want to add a case for 'icpc'.
Comment 1 Bernhard Reutner-Fischer 2013-02-28 11:52:12 UTC
Please see http://uclibc.org/developing#contrib

As for using a C++ compiler, NAK.
Given how icc behaved last time i tried, thinking about piping our C-code through icpc and expecting any non-error output is just not realistic.

Anyway. Please submit proper patches if you want them to be applied.
TIA and cheers,
Comment 2 Jeffrey Walton 2013-02-28 19:16:26 UTC
(In reply to comment #1)
> As for using a C++ compiler, NAK.
:)