on: 4.3.2
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu at behdad dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38295
--- Comment #2 from gnu at behdad dot org 2008-11-27 18:31 ---
I'm not following. Why arrays? Those are pointers, and their difference is
known at compile time.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38295
--- Comment #3 from gnu at behdad dot org 2008-11-27 18:32 ---
Oh, I see what you mean. Yes, I said in my report that this is
undefined/unsupported/... according to the C standard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38295
--- Comment #5 from gnu at behdad dot org 2008-11-27 18:35 ---
If the two functions are in the same compilation unit (and static), it's known
at compile time, isn't it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38295
--- Comment #8 from gnu at behdad dot org 2008-11-27 18:55 ---
If they are asked to be put in different sections, sure, it will err. But
doesn't gcc already use relative calls for many static functions in the same
unit?
Let me back out: my request is: add gcc extension to su
error: initializer element is not computable at
load time
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu at behdad dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38354
--- Comment #2 from gnu at behdad dot org 2008-12-01 23:38 ---
It's not a useful use case, agreed, but I don't see how that affects the
computability of a value at "load time", whatever that means. It did trick me:
I was converting a vtable to use label values, a
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu at behdad dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38481
gned at gcc dot gnu dot org
ReportedBy: gnu at behdad dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28875
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu at behdad dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28876
cc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu at behdad dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29445
all...
Thanks,
--
Summary: Function __attribute__ ((idempotent))
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
--- Comment #5 from gnu at behdad dot org 2007-08-13 05:40 ---
(In reply to comment #2)
> If the compiler could tell whether you were right or not in all cases, you
> wouldn't need the attributes in the first place.
This is not completely true though: the compiler cannot t
13 matches
Mail list logo