Closed Bug 628378 Opened 15 years ago Closed 15 years ago

Please drop [] around the expressions in .size assembler directives

Categories

(NSS :: Build, defect, P2)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
3.12.10

People

(Reporter: espindola, Assigned: espindola)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — — Splinter Review
In mpi_amd64_gas.s there is code like .size s_mpv_mul_set_vec64, [.-s_mpv_mul_set_vec64] Using [] is undocumented (at least I couldn't find anything in the gas manual), not as supported and IMHO less clear than (). Currently this is all that prevents this from being assembled by llvm's integrated assembler. I can fix llvm.org/PR8685 instead, but it looked better to change 4 chars in this file :-)
Assignee: nobody → respindola
Comment on attachment 506509 [details] [diff] [review] patch Thanks for the patch. Let's just remove the []. The () are not necessary: http://sourceware.org/binutils/docs/as/Size.html#Size
Attachment #506509 - Flags: review-
Please also fix mozilla/security/nss/lib/freebl/mpi/mpi_amd64_sun.s. Thanks.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → 3.12.10
Attached patch Drop the [] — — Splinter Review
Attachment #506509 - Attachment is obsolete: true
Attachment #508150 - Flags: review?(wtc)
Comment on attachment 508150 [details] [diff] [review] Drop the [] r=wtc. Patch checked in on the NSS trunk (NSS 3.13) and the NSS_3_12_BRANCH (NSS 3.12.10). Checking in mpi_amd64_gas.s; /cvsroot/mozilla/security/nss/lib/freebl/mpi/mpi_amd64_gas.s,v <-- mpi_amd64_g as.s new revision: 1.3; previous revision: 1.2 done Checking in mpi_amd64_sun.s; /cvsroot/mozilla/security/nss/lib/freebl/mpi/mpi_amd64_sun.s,v <-- mpi_amd64_s un.s new revision: 1.2; previous revision: 1.1 done Checking in mpi_amd64_gas.s; /cvsroot/mozilla/security/nss/lib/freebl/mpi/mpi_amd64_gas.s,v <-- mpi_amd64_g as.s new revision: 1.2.70.1; previous revision: 1.2 done Checking in mpi_amd64_sun.s; /cvsroot/mozilla/security/nss/lib/freebl/mpi/mpi_amd64_sun.s,v <-- mpi_amd64_s un.s new revision: 1.1.198.1; previous revision: 1.1 done
Attachment #508150 - Flags: review?(wtc) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: Please use () instead of [] → Please drop [] around the expressions in .size assembler directives
How can we get this patch on to mozilla-central? Should we wait for the next NSS update? Or can we land it on our own?
Blocks: clang-macosx
ehsan: please wait for the next NSS update.
Wan-Teh: do you know when the next NSS update is going to be? We need these patches on mozilla-central really soon. Is this OK that we just go ahead and land this bug and bug 629839 on mozilla-central if the NSS update is not going to happen until next week?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: