diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2008-06-27 16:53:54 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2008-06-27 16:53:54 +0000 |
commit | 5ead67f603d287ce0a4c66e173f556af0d7ae8f7 (patch) | |
tree | 6251910fa634d4bb4d3646027e5beddf48fda5f5 /gcc/c-pragma.c | |
parent | d1caaa7618334bb5153e473828da8ec4bf4737b7 (diff) | |
download | gcc-5ead67f603d287ce0a4c66e173f556af0d7ae8f7.zip gcc-5ead67f603d287ce0a4c66e173f556af0d7ae8f7.tar.gz gcc-5ead67f603d287ce0a4c66e173f556af0d7ae8f7.tar.bz2 |
c-format.c (handle_format_attribute): Fix -Wc++-compat and/or -Wcast-qual warnings.
* c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
-Wcast-qual warnings.
* c-pragma.c (dpm_eq, handle_pragma_push_macro,
handle_pragma_pop_macro): Likewise.
* collect2.c (resolve_lib_name): Likewise.
* config/arc/arc.c (arc_init): Likewise.
* config/arm/arm.c (neon_builtin_compare,
locate_neon_builtin_icode): Likewise.
* config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section):
Likewise.
* config/bfin/bfin.c (bfin_init_machine_status,
bfin_optimize_loop): Likewise.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
* config/cris/cris.c (cris_init_expanders): Likewise.
* config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
* config/darwin.c (machopic_indirection_eq,
machopic_indirection_name, machopic_output_indirection):
Likewise.
* config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
frv_optimize_membar): Likewise.
* config/i386/cygwin.h (mingw_scan,
GCC_DRIVER_HOST_INITIALIZATION): Likewise.
* config/i386/cygwin1.c (mingw_scan): Likewise.
* config/i386/i386.c (machopic_output_stub): Likewise.
* config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
i386_pe_unique_section): Likewise.
* config/ia64/ia64.c (ia64_init_machine_status,
ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
Likewise.
* config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
* config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
* config/m68k/m68k.c (m68k_handle_option,
m68k_sched_md_init_global): Likewise.
* config/mcore/mcore.c (mcore_mark_dllexport,
mcore_mark_dllimport, mcore_unique_section): Likewise.
* config/mips/mips.c (mips_block_move_straight,
mips16_rewrite_pool_refs, mips_sim_wait_regs_2,
mips_sim_record_set): Likewise.
* config/mmix/mmix.c (mmix_init_machine_status,
mmix_encode_section_info): Likewise.
* config/pa/pa.c (pa_init_machine_status, hppa_encode_label):
Likewise.
* config/rs6000/rs6000.c (rs6000_init_machine_status,
print_operand_address, output_toc, redefine_groups,
rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
* config/s390/s390.c (s390_init_machine_status): Likewise.
* config/score/score.c (score_block_move_straight,
score_block_move_loop_body): Likewise.
* config/sparc/sparc.c (sparc_init_machine_status): Likewise.
* config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
* emit-rtl.c (find_auto_inc): Likewise.
* gcc.c (translate_options, process_command): Likewise.
* reorg.c (dbr_schedule): Likewise.
* sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
* xcoffout.c (xcoffout_declare_function): Likewise.
From-SVN: r137191
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 81b9910..e7bb928 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -270,7 +270,8 @@ dpm_hash (const void *p) static int dpm_eq (const void *pa, const void *pb) { - const struct def_pragma_macro *a = pa, *b = pb; + const struct def_pragma_macro *const a = (const struct def_pragma_macro *) pa, + *const b = (const struct def_pragma_macro *) pb; return a->hash == b->hash && strcmp (a->name, b->name) == 0; } @@ -315,10 +316,10 @@ handle_pragma_push_macro (cpp_reader *reader) dummy.name = macroname; slot = htab_find_slot_with_hash (pushed_macro_table, &dummy, dummy.hash, INSERT); - c = *slot; + c = (struct def_pragma_macro *) *slot; if (c == NULL) { - *slot = c = ggc_alloc (sizeof (struct def_pragma_macro)); + *slot = c = GGC_NEW (struct def_pragma_macro); c->hash = dummy.hash; c->name = ggc_alloc_string (macroname, TREE_STRING_LENGTH (id) - 1); c->value.prev = NULL; @@ -326,7 +327,7 @@ handle_pragma_push_macro (cpp_reader *reader) else { struct def_pragma_macro_value *v; - v = ggc_alloc (sizeof (struct def_pragma_macro_value)); + v = GGC_NEW (struct def_pragma_macro_value); *v = c->value; c->value.prev = v; } @@ -372,7 +373,7 @@ handle_pragma_pop_macro (cpp_reader *reader) dummy.hash, NO_INSERT); if (slot == NULL) return; - c = *slot; + c = (struct def_pragma_macro *) *slot; cpp_pop_definition (reader, c->name, c->value.value); |