Re: [PATCH] Fix Immediate Values x86_64 support old gcc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Wednesday, May 21, 2008 - 2:28 pm

* Sam Ravnborg (sam@ravnborg.org) wrote:

Yes, I guess this worth being commented, you are right. I'll write
something along the lines written in the patch header.


Hrm, if I do that, I would have to add USE_IMMEDIATE to each
architecture's makefiles for which immediate values are supported, e.g.:

export USE_IMMEDIATE := $(CONFIG_IMMEDIATE)

The "BROKEN_IMMEDIATE" (negative) approach only needs to be defined on
x86_64 where gcc 3.x does not support symbol+offset correctly.


I could pass the USE_IMMEDIATE as a -D to the compiler flags. That would
be cleaner.


I think USE_IMMEDIATE is the way to go then.

Thanks,

Mathieu


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix Immediate Values x86_64 support old gcc, Mathieu Desnoyers, (Wed May 21, 10:01 am)
Re: [PATCH] Fix Immediate Values x86_64 support old gcc, Sam Ravnborg, (Wed May 21, 1:37 pm)
Re: [PATCH] Fix Immediate Values x86_64 support old gcc, Mathieu Desnoyers, (Wed May 21, 2:28 pm)
Re: [PATCH] Fix Immediate Values x86_64 support old gcc, Sam Ravnborg, (Wed May 21, 2:46 pm)
Re: [PATCH] Fix Immediate Values x86_64 support old gcc (v2), Mathieu Desnoyers, (Wed May 21, 2:57 pm)
Re: [PATCH] Fix Immediate Values x86_64 support old gcc (v3), Mathieu Desnoyers, (Wed May 21, 4:24 pm)
Re: [PATCH] Fix Immediate Values x86_64 support old gcc (v3), Mathieu Desnoyers, (Wed May 21, 7:03 pm)
[PATCH ftrace.git sched-fixes.git] Fix Immediate Values x8 ..., Mathieu Desnoyers, (Tue May 27, 6:12 am)