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]

[fortran,patch] Fix localization of runtime error messages emitted by the front-end


Attached patch fixes PR34729, where we emitted truncated localized
strings in the front-end for runtime error messages. Almost trivial,
but it can't hurt to ask for a review!

Bootstrapped and regtested on x86_64-linux. OK for trunk?

FX



2008-02-01  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

        PR fortran/34729
        * trans-const.c (gfc_build_string_const): Don't call gettext.
        (gfc_build_localized_string_const): New function.
        * trans-const.h (gfc_build_localized_string_const): New prototype.
        * trans.c (gfc_trans_runtime_check): Use
        gfc_build_localized_string_const instead of gfc_build_string_const.
        (gfc_call_malloc): Likewise.
        (gfc_allocate_with_status): Likewise.
        (gfc_allocate_array_with_status): Likewise.
        (gfc_deallocate_with_status): Likewise.
        (gfc_call_realloc): Likewise.
        * trans-io.c (gfc_trans_io_runtime_check): Likewise.


-- 
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/

Attachment: pr34729.diff
Description: Binary data


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