Commit 997ef9e7 by Trevor Saunders Committed by Trevor Saunders

remove useless unused attributes in i386 code

gcc/

	* config/i386/driver-i386.c: Remove names of unused arguments and
	unnecessary unused attributes.
	* config/i386/host-mingw32.c: Likewise.
	* config/i386/i386.c: Likewise.
	* config/i386/winnt-stubs.c: Likewise.
	* config/i386/winnt.c: Likewise.

From-SVN: r212968
parent c9b1a29f
2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
* config/i386/driver-i386.c: Remove names of unused arguments and
unnecessary unused attributes.
* config/i386/host-mingw32.c: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/winnt-stubs.c: Likewise.
* config/i386/winnt.c: Likewise.
2014-07-23 Jiong Wang <jiong.wang@arm.com>
* config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
......
......@@ -920,8 +920,7 @@ done:
-march and -mtune "native" target and will leave to the newly
built compiler to generate code for its default target. */
const char *host_detect_local_cpu (int argc ATTRIBUTE_UNUSED,
const char **argv ATTRIBUTE_UNUSED)
const char *host_detect_local_cpu (int, const char **)
{
return NULL;
}
......
......@@ -83,7 +83,7 @@ mingw32_gt_pch_alloc_granularity (void)
open file descriptor if the host would like to probe with mmap. */
static void *
mingw32_gt_pch_get_address (size_t size, int fd ATTRIBUTE_UNUSED)
mingw32_gt_pch_get_address (size_t size, int)
{
void* res;
size = (size + va_granularity - 1) & ~(va_granularity - 1);
......
......@@ -33,19 +33,19 @@ along with GCC; see the file COPYING3. If not see
#include "hashtab.h"
bool
i386_pe_type_dllimport_p (tree decl ATTRIBUTE_UNUSED)
i386_pe_type_dllimport_p (tree)
{
return false;
}
bool
i386_pe_type_dllexport_p (tree decl ATTRIBUTE_UNUSED)
i386_pe_type_dllexport_p (tree)
{
return false;
}
void
i386_pe_adjust_class_at_definition (tree t ATTRIBUTE_UNUSED)
i386_pe_adjust_class_at_definition (tree)
{ }
......@@ -66,9 +66,8 @@ along with GCC; see the file COPYING3. If not see
/* Handle a "shared" attribute;
arguments as in struct attribute_spec.handler. */
tree
ix86_handle_shared_attribute (tree *node, tree name,
tree args ATTRIBUTE_UNUSED,
int flags ATTRIBUTE_UNUSED, bool *no_add_attrs)
ix86_handle_shared_attribute (tree *node, tree name, tree, int,
bool *no_add_attrs)
{
if (TREE_CODE (*node) != VAR_DECL)
{
......@@ -83,9 +82,7 @@ ix86_handle_shared_attribute (tree *node, tree name,
/* Handle a "selectany" attribute;
arguments as in struct attribute_spec.handler. */
tree
ix86_handle_selectany_attribute (tree *node, tree name,
tree args ATTRIBUTE_UNUSED,
int flags ATTRIBUTE_UNUSED,
ix86_handle_selectany_attribute (tree *node, tree name, tree, int,
bool *no_add_attrs)
{
/* The attribute applies only to objects that are initialized and have
......@@ -264,8 +261,7 @@ i386_pe_maybe_mangle_decl_assembler_name (tree decl, tree id)
user-specified visibility attributes. */
void
i386_pe_assemble_visibility (tree decl,
int vis ATTRIBUTE_UNUSED)
i386_pe_assemble_visibility (tree decl, int)
{
if (!decl
|| !lookup_attribute ("visibility", DECL_ATTRIBUTES (decl)))
......@@ -292,7 +288,7 @@ i386_pe_mangle_decl_assembler_name (tree decl, tree id)
a file stream. */
tree
i386_pe_mangle_assembler_name (const char *name ATTRIBUTE_UNUSED)
i386_pe_mangle_assembler_name (const char *name)
{
const char *skipped = name + (*name == '*' ? 1 : 0);
const char *stripped = targetm.strip_name_encoding (skipped);
......@@ -467,7 +463,7 @@ i386_pe_reloc_rw_mask (void)
#define SECTION_PE_SHARED SECTION_MACH_DEP
unsigned int
i386_pe_section_type_flags (tree decl, const char *name, int reloc)
i386_pe_section_type_flags (tree decl, const char *, int reloc)
{
unsigned int flags;
......@@ -560,7 +556,7 @@ i386_pe_asm_named_section (const char *name, unsigned int flags,
void
i386_pe_asm_output_aligned_decl_common (FILE *stream, tree decl,
const char *name, HOST_WIDE_INT size,
HOST_WIDE_INT align ATTRIBUTE_UNUSED)
HOST_WIDE_INT align)
{
HOST_WIDE_INT rounded;
......@@ -1276,8 +1272,7 @@ i386_pe_start_function (FILE *f, const char *name, tree decl)
}
void
i386_pe_end_function (FILE *f, const char *name ATTRIBUTE_UNUSED,
tree decl ATTRIBUTE_UNUSED)
i386_pe_end_function (FILE *f, const char *, tree)
{
i386_pe_seh_fini (f);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment