This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: define_constraints patch, re-revised


On 9/30/06, Rask Ingemann Lambertsen <rask@sygehus.dk> wrote:
I'm getting the warnings

/stuff/gcc/tm-constrs.h: In function 'satisfies_constraint_Ipu':
/stuff/gcc/tm-constrs.h:140: advarsel: unused parameter 'op'

from

; Supported immediate operands for "push".
(define_constraint      "Ipu"
        "A constant usable with the @code{push} instruction."
   (and (match_code "const_int")
        (match_test "TARGET_18x ? true : false")))

This should be impossible. The boilerplate logic generated at the top of each satisfies_constraint_XXX function unconditionally uses the "op" parameter, and so does the code generated for (match_code "const_int"). I would like to see the relevant excerpt of tm-constrs.h, please.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]