The default bug view has changed. See this FAQ.

Suppress Android gcc 4.4 warnings about "mangling of 'va_list' has changed in GCC 4.4"

RESOLVED FIXED in mozilla15

Status

()

Core
Build Config
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: cpeterson, Assigned: cpeterson)

Tracking

unspecified
mozilla15
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Android's gcc 4.4 dumps many "the mangling of 'va_list' has changed in GCC 4.4" warnings for system headers we don't control and va_list code that does not care about a stable name mangling ABI.

David Turner from the Android NDK team says [1]:

> there is no simple way to get rid of
> the warning that I know of (trust me I tried).
> The warning message comes from historical reasons. I believe it has been
> completely removed from the GCC 4.5 sources, but we're not using this yet.
> 
> For the record, the issue is that the mangling of 'va_list' has changed
> between gcc 4.2.1 and 4.4.0 (due to a late corrigenda to the ARM spec,
> previous versions of the toolchain mangled va_list the same a void*, which
> was wrong).
> 
> This however does *not* affect NDK-generated code because, very fortunately,
> none of the stable ABIs exposed by the NDK depend on this mangling (this has
> been checked carefully), so whichever toolchain you use, your code will run
> on all Android systems.

[1] https://groups.google.com/group/android-ndk/browse_thread/thread/9ab939743a968a83
(Assignee)

Comment 1

5 years ago
Created attachment 629013 [details] [diff] [review]
suppress-psabi-warnings.patch

Add gcc -Wno-psabi for Fennec's CXXFLAGS.
Assignee: nobody → cpeterson
Status: NEW → ASSIGNED
Attachment #629013 - Flags: review?(ted.mielczarek)
Comment on attachment 629013 [details] [diff] [review]
suppress-psabi-warnings.patch

Yes please!
Attachment #629013 - Flags: review?(ted.mielczarek) → review+
(Assignee)

Comment 3

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/6a639340d3b6
https://hg.mozilla.org/mozilla-central/rev/6a639340d3b6
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
(Assignee)

Updated

4 years ago
Blocks: 826133
You need to log in before you can comment on or make changes to this bug.