This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Implementing p0515 - spaceship operator
- From: Tim van Deurzen <tim at kompiler dot org>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 8 Jan 2018 22:07:00 +0100
- Subject: Implementing p0515 - spaceship operator
- Arc-authentication-results: i=1; auth=pass smtp.auth=tim smtp.mailfrom=tim at kompiler dot org
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=kompiler.org; s=dkim; t=1515445620; h=from:subject:date:message-id:to:mime-version:content-type:content-transfer-encoding; bh=q5oiRsVgCMDiHLJ2o+7VRG2flH5mFmdWAb9xmgTOilQ=; b=t790atiBgtgM5GxZYKp4QWqTIa2NSUj0pefMqXYYOv7x1Pb8wFTeK0C0jSHdaNbq/glDHy KT6Df4VBcwmACfm8HT3jQ/55Jujy2eqZK+BkdgA6ZmnvSjgie0cbxJAp/NrIzEsqUIwnxC 3V2MOw78M70ZRlWUsMumZcVoG+CSZTHjlTi3dLo2VJ/WFYOzQc4dMolMfOn2H75Wf6DXae Nndab9HO4rUTK8XgWw4WxFdg8k/2/C5STOozmbKzZ3RKxyHUqATV7vryULqG73wkWoMNZi Cq422fwlSvp6O4eF6Fa+1tpdlCUGvh2AVXqy0djuvUKE8nyTDtfNnT6cbIRPOQ==
- Arc-seal: i=1; s=dkim; d=kompiler.org; t=1515445620; a=rsa-sha256; cv=none; b=ENSUvt8CD50n0ZwT3ZE29NFzKqtjV0EuWQ24e4SoFvUxyYoFG5zPWLVt7f3Wd1h3LULsthL2HG7GXErwPQWsadn/Db0muskeDqLtTafrnUqSFtbjOAqivgvt7+2TjGHgeQ9z5wWInjvJYOMVFG2K9OHqtx1aCvD/FWKZbOSrE25j+V4GY45uY5IhrxJ+MYO+gSF93Zh7B7DcOhc9xkRQcoWqwr5eFwuMyKM7Wrt80pI63XfRKN5rtP21bzY2Qvl8iUJSB3/jYCOnRZa25bnR2ka2svfcsMwLFpplS9Kfbkrv75VRcUVaY6TxTYWrCN92dpg/mS8HOkBCoNFYVE86Lw==
- Authentication-results: sourceware.org; auth=none
Hi,
I've been spending some time the past few weeks implementing p0515r2,
i.e. the proposal for consistent comparisons for C++ (aka the spaceship
operator). I've received some very valuable help on the IRC channel, but
I'm still a little bit stuck. Note, I'm completely new to the GCC
codebase and am very much still getting oriented.
Following advice from some of the people in IRC channel I implemented
parsing the new token in libcpp and I seem to be successfully parsing it
and creating a new AST node. As this feature is not in the C++ standard
yet, I wanted to add a command line flag to enable usage of the new
operator and ignoring it otherwise. I managed to get cc1plus to accept
the parameter, but it seems that when I invoke my own g++ binary with
that parameter, it complains about unknown parameters.
I'm perfectly happy to dig further on my own, but I get the feeling I'm
missing some documentation / resource somewhere that might help me out.
Is there some documentation about adding and passing around parameters
that will be used both in libcpp and the C++ front-end? What would be
the best place to look to learn more about how part of GCC this is
structured? I want to make sure I go about this correctly.
If this is the wrong place to ask for help, please redirect me, so that
I don't unnecessarily spam the wrong mailing list :-).
Kind regards,
Tim.