https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98576

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
__builtin_FUNCTION and __builtin_FILE that the __builtin_source_location
implementation is based on don't remap to execution charset either.

const char *
foo (void)
{
  return __builtin_FUNCTION ();
}

const char *
bar (void)
{
  return "bar";
}

const char *
baz (void)
{
  return __FILE__;
}

const char *
qux (void)
{
  return __FUNCTION__;
}

const char *
corge (void)
{
  return __PRETTY_FUNCTION__;
}

const char *
garply (void)
{
  return __builtin_FILE ();
}
./cc1 -quiet -O2 pr98576.c -fexec-charset=EBCDIC-US; grep string pr98576.s
        .string "foo"
        .string "\202\201\231"
        .string "\227\231\371\370\365\367\366K\203"
        .string "pr98576.c"
        .string "\203\226\231\207\205"
        .string "\230\244\247"
./cc1plus -quiet -O2 pr98576.c -fexec-charset=EBCDIC-US; grep string pr98576.s
        .string "foo"
        .string "\202\201\231"
        .string "\227\231\371\370\365\367\366K\203"
        .string "\230\244\247"
        .string "const char* corge()"
        .string "pr98576.c"

Reply via email to