From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66349 invoked by alias); 30 Mar 2016 01:08:08 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 66305 invoked by uid 89); 30 Mar 2016 01:08:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=optarg X-HELO: paperclip.tbsaunde.org Received: from tbsaunde.org (HELO paperclip.tbsaunde.org) (66.228.47.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Mar 2016 01:07:56 +0000 Received: from keg.corp.tor1.mozilla.com (unknown [66.207.193.21]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id 34206C07C; Wed, 30 Mar 2016 01:07:55 +0000 (UTC) From: tbsaunde+binutils@tbsaunde.org To: binutils@sourceware.org Cc: Trevor Saunders Subject: [PATCH 0/7] enable -Wwrite-strings for gas Date: Wed, 30 Mar 2016 01:08:00 -0000 Message-Id: <1459300381-19313-1-git-send-email-tbsaunde+binutils@tbsaunde.org> X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00399.txt.bz2 From: Trevor Saunders Hi, At this point I think we've fixed basically all the -Wwrite-strings issues in gas that can be fixed reasonably without just adding casts. So this series adds a handful of casts in several patches that try to explain why those casts are necessary, and then enables the warning for gas. I built one target per tc-*.c and regtested x86_64-linux-gnu, ok? Trev Trevor Saunders (7): cast literal to char * when assigning to input_line_ptr work around get_symbol_name () in sparc and ia64 cast to char * when assigning to optarg cast the arg to md_assemble () to char * tc-i960.c: add some casts when assigning literals to args[i] make xtensa_section_rename () take const char * enable -Wwrite-strings for gas bfd/configure | 20 ++++++++++++++++++-- bfd/warning.m4 | 4 ++++ binutils/configure | 20 ++++++++++++++++++-- gas/Makefile.am | 2 +- gas/Makefile.in | 2 +- gas/as.c | 2 +- gas/config/tc-i960.c | 26 +++++++++++++------------- gas/config/tc-ia64.c | 6 ++++-- gas/config/tc-m32c.c | 8 ++++---- gas/config/tc-m32r.c | 2 +- gas/config/tc-msp430.c | 2 +- gas/config/tc-nds32.c | 10 +++++----- gas/config/tc-sparc.c | 2 +- gas/config/tc-xtensa.c | 6 +++--- gas/config/tc-xtensa.h | 2 +- gas/config/tc-z80.c | 2 +- gas/configure | 20 ++++++++++++++++++-- gas/stabs.c | 2 +- gold/configure | 16 ++++++++++++++++ gprof/configure | 20 ++++++++++++++++++-- ld/configure | 20 ++++++++++++++++++-- opcodes/configure | 20 ++++++++++++++++++-- 22 files changed, 166 insertions(+), 48 deletions(-) -- 2.1.4