Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/95479/?format=api
{ "id": 95479, "url": "http://patchwork.ozlabs.org/api/patches/95479/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20110513145734.0a9f4277@rex.config/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20110513145734.0a9f4277@rex.config>", "list_archive_url": null, "date": "2011-05-13T13:57:34", "name": "ARM fixed-point support [2/6]: assembler format for fixed-point constants", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "94aec2424490bc70ff2dff1af4fb38a7f8032c0a", "submitter": { "id": 4374, "url": "http://patchwork.ozlabs.org/api/people/4374/?format=api", "name": "Julian Brown", "email": "julian@codesourcery.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20110513145734.0a9f4277@rex.config/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/95479/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/95479/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-return-291804-incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "mailing list gcc-patches@gcc.gnu.org" ], "Received": [ "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\tby ozlabs.org (Postfix) with SMTP id 2E325B6EEE\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 13 May 2011 23:57:55 +1000 (EST)", "(qmail 3343 invoked by alias); 13 May 2011 13:57:53 -0000", "(qmail 3334 invoked by uid 22791); 13 May 2011 13:57:53 -0000", "from mail.codesourcery.com (HELO mail.codesourcery.com)\n\t(38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with\n\tESMTP; Fri, 13 May 2011 13:57:39 +0000", "(qmail 17278 invoked from network); 13 May 2011 13:57:38 -0000", "from unknown (HELO rex.config) (julian@127.0.0.2) by\n\tmail.codesourcery.com with ESMTPA; 13 May 2011 13:57:38 -0000" ], "X-SWARE-Spam-Status": "No, hits=-1.7 required=5.0\ttests=AWL, BAYES_00,\n\tT_RP_MATCHES_RCVD", "X-Spam-Check-By": "sourceware.org", "Date": "Fri, 13 May 2011 14:57:34 +0100", "From": "Julian Brown <julian@codesourcery.com>", "To": "gcc-patches@gcc.gnu.org", "Subject": "[PATCH] ARM fixed-point support [2/6]: assembler format for\n\tfixed-point constants", "Message-ID": "<20110513145734.0a9f4277@rex.config>", "Mime-Version": "1.0", "Content-Type": "multipart/mixed; boundary=\"MP_/XC88cYRoM9wNdApnwcKPeDr\"", "X-IsSubscribed": "yes", "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm", "Precedence": "bulk", "List-Id": "<gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>", "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>", "Sender": "gcc-patches-owner@gcc.gnu.org" }, "content": "This patch changes the format used to print fixed-point constants from\nhex to decimal. For instance a negative \"short fract\" fixed-point\nconstant may be represented as a signed HOST_WIDE_INT from -1 to -128,\nwhich would currently be printed as e.g. 0xfff....ffxx, resulting in a\n\"bignum truncated to fit\" warning from the assembler. This trouble is\navoided if we just print using integers instead, similarly to the way\nsigned character-constants are emitted elsewhere in the compiler.\n\nTested along with the rest of the patch series. OK to apply?\n\nJulian\n\nChangeLog\n\n * final.c (output_addr_const): Print fixed-point constants as\n decimal not hex (avoiding an assembler overflow warning for\n negative byte constants).", "diff": "commit 7c169485b6e5b153af02c83e8b858b8613ed7664\nAuthor: Julian Brown <julian@henry8.codesourcery.com>\nDate: Fri May 13 05:44:19 2011 -0700\n\n Tweak fixed-point constant format.\n\ndiff --git a/gcc/final.c b/gcc/final.c\nindex 7e1ae90..b147ddf 100644\n--- a/gcc/final.c\n+++ b/gcc/final.c\n@@ -3633,8 +3633,7 @@ output_addr_const (FILE *file, rtx x)\n break;\n \n case CONST_FIXED:\n- fprintf (file, HOST_WIDE_INT_PRINT_HEX,\n-\t (unsigned HOST_WIDE_INT) CONST_FIXED_VALUE_LOW (x));\n+ fprintf (file, HOST_WIDE_INT_PRINT_DEC, CONST_FIXED_VALUE_LOW (x));\n break;\n \n case PLUS:\n", "prefixes": [] }