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] Aliasee should be either GlobalValue or bitcast of GlobalValue #4438

Closed
edwintorok opened this issue Apr 25, 2009 · 4 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@edwintorok
Copy link
Contributor

Bugzilla Link 4066
Resolution FIXED
Resolved on Apr 25, 2009 16:28
Version unspecified
OS Linux
Blocks llvm/llvm-bugzilla-archive#4068
Attachments x.i
CC @asl

Extended Description

clang -MD -MF drivers/hwmon/.w83l785ts.o.d -nostdinc -isystem include -Iinclude -I/home/edwin/builds/linux-2.6/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 -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(w83l785ts)" -D"KBUILD_MODNAME=KBUILD_STR(w83l785ts)" -c drivers/hwmon/w83l785ts.c -emit-llvm

Trying to get a reduced testcase.

@edwintorok
Copy link
Contributor Author

Reduced testcase:

struct i2c_device_id {
};
static const struct i2c_device_id w83l785ts_id[] = {
};
extern const struct i2c_device_id __mod_i2c_device_table attribute ((unused, alias("w83l785ts_id")));

Aliasee should be either GlobalValue or bitcast of GlobalValue
%struct.i2c_device_id* @​__mod_i2c_device_table
Broken module found, compilation aborted!
0 clang-cc 0x000000000104471f
1 clang-cc 0x0000000001044b15
2 libpthread.so.0 0x00007f94388c07b0
3 libc.so.6 0x00007f9437be0105 gsignal + 53
4 libc.so.6 0x00007f9437be1623 abort + 387
5 clang-cc 0x0000000001007c27
6 clang-cc 0x0000000000fdc911
7 clang-cc 0x0000000000fdc9d9
8 clang-cc 0x000000000043ad4c
9 clang-cc 0x000000000043b367
10 clang-cc 0x00000000005a974c
11 clang-cc 0x0000000000477465
12 clang-cc 0x000000000047db82 main + 2450
13 libc.so.6 0x00007f9437bcc5a6 __libc_start_main + 230
14 clang-cc 0x000000000042abc9
Stack dump:
0. Program arguments: /usr/local/bin/../libexec/clang-cc -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name testcase-min.i --relocation-model static --disable-fp-elim --unwind-tables=1 --fmath-errno=1 -fdiagnostics-show-option -o /tmp/cc-ftLIXo.s -x cpp-output testcase-min.i

  1.  <eof> parser at end of file
    
  2.  Per-function optimization
    

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 25, 2009

Increasing 'severity' one notch, because this blocks compilation of a large amount of Linux kernel code.

@edwintorok
Copy link
Contributor Author

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
Projects
None yet
Development

No branches or pull requests

3 participants