<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
I am working on a clang frontend for the XCore processor.<br>
<br>
<br>
The XCore ABI requires that 'char' is unsigned.<br>
I notice the C99 standard does not require it to be signed - contrary to the comment:<br>
      /// isSignedIntegerType - Return true if this is an integer type that is<br>
      /// signed, according to C99 6.2.5p4 [char, signed char, short, int, long..],<br>
      /// or an enum decl which has a signed representation.<br>
<br>
Thus I would like to over-ride the default setting in LangOptions.def:<br>
        LANGOPT(CharIsSigned      , 1, 1, "signed char")<br>
<br>
I had considered using setForcedLangOptions() - but assume this is the wrong way to use it!<br>
      virtual void XCoreTargetInfo::setForcedLangOptions(LangOptions &Opts) {<br>
        ...<br>
       Opts.CharIsSigned = false;<br>
      }<br>
<br>
<br>
<br>
I would also like to make -fomit-frame-pointer" the default behaviour for the target:<br>
    CODEGENOPT(DisableFPElim     , 1, 0) ///< Set when -fomit-frame-pointer is enabled.<br>
And the same for -fno-common<br>
    CODEGENOPT(NoCommon          , 1, 0) ///< Set when -fno-common or C++ is enabled.<br>
<br>
<br>
<br>
What is the correct place (TargetInfo constructor?) and mechanism to specify alternative default options?<br>
Is there a target-option.def over-rides mechanism?<br>
<br>
Thank you<br>
<br>
robert<br>
<br>
</div>
</body>
</html>