Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux kernel] cannot aggregate codegen stmtexpr as lvalue #4439

Closed
llvmbot opened this issue Apr 25, 2009 · 2 comments
Closed

[Linux kernel] cannot aggregate codegen stmtexpr as lvalue #4439

llvmbot opened this issue Apr 25, 2009 · 2 comments
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 25, 2009

Bugzilla Link 4067
Resolution FIXED
Resolved on Feb 22, 2010 12:42
Version unspecified
OS Linux
Blocks llvm/llvm-bugzilla-archive#4068
Attachments pre-processed source code
Reporter LLVM Bugzilla Contributor

Extended Description

Building the Linux kernel yields the following error, on code that works with gcc:

clang -std=gnu89 -MD -MF fs/jbd/.transaction.o.d -nostdinc -isystem include -Iinclude -I/spare/tmp/linux-2.6.29/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(transaction)" -D"KBUILD_MODNAME=KBUILD_STR(jbd)" -c -o fs/jbd/transaction.o fs/jbd/transaction.c
clang: warning: the clang compiler does not yet support '-pg'
warning: unknown warning option: -Wframe-larger-than=2048
fs/jbd/transaction.c:1429:16: error: cannot compile this l-value expression yet
trans_time = ktime_to_ns(ktime_sub(ktime_get(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/jbd/transaction.c:1429:28: note: instantiated from:
trans_time = ktime_to_ns(ktime_sub(ktime_get(),
^~~~~~~~~
1 diagnostic generated.

@lattner
Copy link
Collaborator

lattner commented Apr 25, 2009

@edwintorok
Copy link
Contributor

mentioned in issue llvm/llvm-bugzilla-archive#4068

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

3 participants