** Branch linked: lp:debian/experimental/gcc-4.7
** Branch linked: lp:ubuntu/gcc-4.7
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1123588
Title:
wrong usage of the `malloc' function attribute
To
** Branch linked: lp:~jamesodhunt/ubuntu/raring/libnih/upstart-devel-
libnih-fixes
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1123588
Title:
wrong usage of the `malloc' function attribute
To
** Branch linked: lp:ubuntu/raring-proposed/libnih
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1123588
Title:
wrong usage of the `malloc' function attribute
To manage notifications about this
This bug was fixed in the package libnih - 1.0.3-4ubuntu16
---
libnih (1.0.3-4ubuntu16) raring; urgency=low
* debian/{libnih1.postinst,libnih-dbus1.postinst}: Force an upgrade to
restart Upstart (to pick up new package version) if the running
instance supports it.
* Merge
** Changed in: upstart
Status: Triaged = Fix Released
** Changed in: libnih
Status: New = In Progress
** Changed in: upstart (Ubuntu Raring)
Status: Triaged = Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to
Scott is right - the description of this attribute *has* changed.
Compare the current description to:
http://web.archive.org/web/20060824111504/http://gcc.gnu.org/onlinedocs/gcc
/Function-Attributes.html
Hence, either the attribute used to be incorrectly described and we were
just lucky not to
which already says ...
The malloc attribute is used to tell the compiler that a function may be
treated as if any non-NULL pointer it returns cannot alias any other pointer
valid when the function returns.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is
** Changed in: libnih
Assignee: (unassigned) = James Hunt (jamesodhunt)
** Changed in: libnih (Ubuntu Raring)
Assignee: (unassigned) = James Hunt (jamesodhunt)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
I've discussed this with Scott. He believes the description of the
malloc attribute has changed since libnih first started using it. The
current description does make its use in libnih and upstart invalid
seemingly.
** Also affects: libnih (Ubuntu)
Importance: Undecided
Status: New
**
according to http://gcc.gnu.org/onlinedocs/ this was documented from 4.1
on, didn't check earlier releases.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1123588
Title:
wrong usage of the `malloc'
A common convention in Upstart+NIH is for functions to accept a parent
pointer as in the following example:
Foo *make_foo (const void *parent) __attribute__ ((malloc));
Foo *
make_foo (const void *parent)
{
Foo *foo = nih_new (parent, Foo);
/* ... */
return foo;
}
But,
yes, that's my understanding.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1123588
Title:
wrong usage of the `malloc' function attribute
To manage notifications about this bug go to:
This bug was fixed in the package gcc-4.7 - 4.7.2-22ubuntu1
---
gcc-4.7 (4.7.2-22ubuntu1) raring; urgency=low
* Merge with Debian; remaining changes:
- Build from upstream source.
gcc-4.7 (4.7.2-22) experimental; urgency=low
* Update to SVN 20130222 (r196236) from the
** Also affects: upstart
Importance: Undecided
Status: New
** Changed in: upstart
Status: New = Triaged
** Changed in: upstart
Importance: Undecided = High
** Changed in: upstart
Assignee: (unassigned) = James Hunt (jamesodhunt)
--
You received this bug notification
I first attempt to remove the malloc function attribute in places where
it doesn't belong.
** Summary changed:
- [4.7 Regression] wrong code with the fix for PR53844
+ wrong usage of the `malloc' function attribute
** Patch added: malloc.diff
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1123588
Title:
wrong usage of the `malloc' function attribute
To manage notifications about this bug go to:
16 matches
Mail list logo