Closed
Bug 1255256
Opened 10 years ago
Closed 10 years ago
decl for free/malloc is after use in mozalloc.h (gcc 6)
Categories
(Core :: Memory Allocator, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1245076
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | ? |
People
(Reporter: mt, Unassigned)
Details
I'm compiling with gcc 6.0.0 and mozalloc.h is throwing these sorts of errors for both malloc() and free():
/home/martin/code/obj/bug1018299/default/dist/include/mozilla/mozalloc.h:192:12: error: use of undeclared identifier 'malloc'
return malloc_impl(size);
Running the preprocessor, this seems to be a product of a loop, which is ultimately terminated by the usual #ifndef guards:
mozalloc.h includes our stdlib.h wrapper
... includes the libstdc++ stdlib.h wrapper
... includes our cstdlib wrapper
... includes mozalloc.h
... includes stdlib.h which is a noop
... and then tries to reference malloc/free, but those are declared in the tail of the libstdc++ stdlib.h wrapper.
Comment 1•10 years ago
|
||
Note that this is not the only issue with gcc 6, which appears to also miscompile Firefox, so please refrain from using it for now.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•