-
Notifications
You must be signed in to change notification settings - Fork 63
Make last conflicting option take precedence #1190
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
Open
Steven6798
wants to merge
1
commit into
qualcomm:main
Choose a base branch
from
Steven6798:issue-1179
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| #---FlagOverwrite.test--------------------- Executable --------------------# | ||
|
Steven6798 marked this conversation as resolved.
|
||
| UNSUPPORTED: x86 | ||
| #BEGIN_COMMENT | ||
| # Check that the last option is the one being used for mutually exclusive flags. | ||
| #END_COMMENT | ||
| #START_TEST | ||
| RUN: %clang %clangopts -ffunction-sections -c %p/Inputs/1.cpp -o %t1.o | ||
| RUN: %link -o %t1.out -shared -z=notext %t1.o --no-warn-shared-textrel --warn-shared-textrel 2>&1 | %filecheck %s -check-prefix=TEXTREL | ||
| RUN: %link -o %t1.out -shared -z=notext %t1.o --warn-shared-textrel --no-warn-shared-textrel 2>&1 | %filecheck %s -check-prefix=NOTEXTREL -allow-empty | ||
| RUN: %not %link -o %t1.out -shared -z=notext %t1.o --warn-shared-textrel --no-fatal-warnings --fatal-warnings 2>&1 | %filecheck %s -check-prefix=FATAL | ||
| RUN: %link -o %t1.out -shared -z=notext %t1.o --warn-shared-textrel --fatal-warnings --no-fatal-warnings 2>&1 | %filecheck %s -check-prefix=NOFATAL | ||
| RUN: %link %linkopts -o %t1.out %t1.o --verbose --no-demangle --demangle 2>&1 | %filecheck %s -check-prefix=DEMANGLE | ||
| RUN: %link %linkopts -o %t1.out %t1.o --verbose --demangle --no-demangle 2>&1 | %filecheck %s -check-prefix=NODEMANGLE | ||
| RUN: %link %linkopts -o %t1.out %t1.o --no-omagic --omagic -z max-page-size=0x1000 | ||
| RUN: %readelf --elf-output-style LLVM -l -W %t1.out 2>&1 | %filecheck %s -check-prefix=OMAGIC | ||
| RUN: %link %linkopts -o %t1.out %t1.o --omagic -z max-page-size=0x1000 --no-omagic | ||
| RUN: %readelf --elf-output-style LLVM -l -W %t1.out 2>&1 | %filecheck %s -check-prefix=NOOMAGIC | ||
|
|
||
| TEXTREL: Warning: Add DT_TEXTREL in a shared object! | ||
| NOTEXTREL-NOT: Warning: Add DT_TEXTREL in a shared object! | ||
| FATAL: Fatal: Linking had errors. | ||
| NOFATAL-NOT: Fatal: Linking had errors. | ||
| DEMANGLE: Verbose: Adding symbol foo() | ||
| NODEMANGLE: Verbose: Adding symbol _Z3foov | ||
| OMAGIC-NOT: 4096 | ||
| NOOMAGIC: 4096 | ||
| #END_TEST | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| int foo() { return 0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #---FlagOverwrite.test--------------------- Executable------------------# | ||
| #BEGIN_COMMENT | ||
| # Check that the last option is the one being used for mutually exclusive flags. | ||
| # Currently, it checks for: | ||
| # --[no-]relax | ||
| #END_COMMENT | ||
| #START_TEST | ||
| RUN: %clang %clangopts -c %p/Inputs/1.s -o %t1.1.o | ||
| RUN: %link %linkopts --emit-relocs --no-relax --relax -T %p/Inputs/script.t %t1.1.o -o %t1.out | ||
| RUN: %objdump --no-print-imm-hex -d %t1.out | %filecheck %s -check-prefix=RELAX | ||
| RUN: %link %linkopts --emit-relocs --relax --no-relax -T %p/Inputs/script.t %t1.1.o -o %t1.out | ||
| RUN: %objdump --no-print-imm-hex -d %t1.out | %filecheck %s -check-prefix=NORELAX | ||
|
|
||
| RELAX-NOT: auipc ra, 0 | ||
| NORELAX: auipc ra, 0 | ||
| #END_TEST |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| .section .text.foo | ||
| .globl foo | ||
| .type foo, @function | ||
| foo: | ||
| lui a5,%hi(bar) | ||
| lw a5,%lo(bar)(a5) | ||
| beqz a5,.L4 | ||
| call baz | ||
| .L4: | ||
| nop | ||
|
|
||
| .section .text.baz | ||
| .globl baz | ||
| .type baz, @function | ||
| baz: | ||
| nop | ||
| .data | ||
| .globl bar | ||
| bar: | ||
| .word 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| SECTIONS { | ||
| .text (0x1233000) : { | ||
| *(.text.foo) | ||
| *(.text.baz) | ||
| } | ||
| .data (0x12345600) : { | ||
| *(.data) | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.