-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure :VAR_MAP and :FUNC_MAP are output in order, part II [#29]
Fix the 'as' issue described in commit 3f67564 "Ensure :VAR_MAP and :FUNC_MAP are output in order: add more test cases [#29]" by handling '//:VAR_MAP', '//:FUNC_MAP' as stand-alone directives instead of 'V_comment | V_prefix_comment'. This also happens to unify the x86_64-linux-gnu, powerpc64le-linux-gnu 'test/as/order-1-{x86_64-linux-gnu,powerpc64le-linux-gnu}.o' as well as 'test/as/order-2-{x86_64-linux-gnu,powerpc64le-linux-gnu}.o' files.
- Loading branch information
Showing
8 changed files
with
111 additions
and
83 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains 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,37 @@ | ||
.version 4.0 | ||
.target sm_50 | ||
.address_size 64 | ||
//:FUNC_MAP "f1.1" | ||
// comment 1 | ||
//:FUNC_MAP "f1.2" | ||
//:VAR_MAP "v1" | ||
// comment 2.1 | ||
//:FUNC_MAP "f2" | ||
// comment 2.2 | ||
//:VAR_MAP "v2" | ||
// The following form is never emitted by GCC, but still happens to be handled here ("by accident"): | ||
//:FUNC_MAP "f3" | ||
// The following form is never emitted by GCC, but still happens to be handled here ("by accident"): | ||
//:FUNC_MAP "f4" | ||
//:VAR_MAP "v4" | ||
.visible .entry e1 () | ||
{ | ||
// [...] | ||
} | ||
.visible .entry e2 () | ||
{ | ||
// [...] | ||
} | ||
.visible .entry e3 () | ||
{ | ||
// [...] | ||
} | ||
.visible .entry e4 () | ||
{ | ||
// [...] | ||
} | ||
//:LABEL_MAP "l5" | ||
.visible .entry e5 () | ||
{ | ||
// [...] | ||
} |
This file contains 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,42 @@ | ||
.version 4.0 | ||
.target sm_50 | ||
.address_size 64 | ||
|
||
//:FUNC_MAP "f1.1" | ||
// comment 1 | ||
//:FUNC_MAP "f1.2" | ||
//:VAR_MAP "v1" | ||
.visible .entry e1 () | ||
{ | ||
// [...] | ||
} | ||
|
||
// comment 2.1 | ||
//:FUNC_MAP "f2" | ||
// comment 2.2 | ||
//:VAR_MAP "v2" | ||
.visible .entry e2 () | ||
{ | ||
// [...] | ||
} | ||
|
||
// The following form is never emitted by GCC, but still happens to be handled here ("by accident"): | ||
/*:FUNC_MAP "f3" */ | ||
.visible .entry e3 () | ||
{ | ||
// [...] | ||
} | ||
|
||
// The following form is never emitted by GCC, but still happens to be handled here ("by accident"): | ||
/*:FUNC_MAP "f4" | ||
:VAR_MAP "v4" */ | ||
.visible .entry e4 () | ||
{ | ||
// [...] | ||
} | ||
|
||
//:LABEL_MAP "l5" | ||
.visible .entry e5 () | ||
{ | ||
// [...] | ||
} |