aboutsummaryrefslogtreecommitdiff
path: root/libiberty/regex.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-05libiberty: fix warnings about left shifting a negative value.Nick Clifton1-1/+1
GCC PR 66827 reports some problems with left shifting a negative value: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66827 Of the problems reported only two remain - in libiberty/regex.c: libiberty/regex.c:6970:11: runtime error: left shift of negative value -1 libiberty/regex.c:7165:4: runtime error: left shift of negative value -1 The patch below fixes these errors by casting the value to be shifted to unsigned before the shift occurs. No regressions were found in the libiberty testsuite or bootstrapping gcc (on an x86_64 target).
2014-05-08* regex.c (bzero) [!_LIBC]: Cast the call to memcpy to (void).uros1-1/+1
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208558 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08* regex.c (bzero) [!_LIBC]: Define without coma expression. (regerror): Cast ↵uros1-3/+3
the call to memcpy to (void) to avoid unused value warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208553 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-22merge from gccDJ Delorie1-1/+1
2013-07-21merge from gccDJ Delorie1-1/+1
2013-02-09merge from gccDJ Delorie1-4/+6
2011-04-20merge from gccDJ Delorie1-7/+4
2010-04-07merge from gccDJ Delorie1-3/+3
2009-10-02merge from gccDJ Delorie1-2/+5
2009-09-11merge from gccDJ Delorie1-14/+12
2009-09-11 * po/bfd.pot: Updated by the Translation project.Nick Clifton1-12/+14
* po/binutils.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gprof.pot: Updated by the Translation project. * po/sv.po: Updated Swedish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. Updated soruces in ld/* to compile cleanly with -Wc++-compat: * ld.h (enum endian_enum,enum symbolic_enum,enum dynamic_list_enum): Move to top level. * ldcref.c: Add casts. * ldctor.c: Add casts. * ldexp.c * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead of integer. * ldlang.h (enum statement_enum): Move to top level. * ldmain.c: Add casts. * ldwrite.c: Add casts. * lexsup.c: Add casts. (enum control_enum): Move to top level. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of integer. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. * as.c (main): Call dwarf2_init. * config/obj-elf.c (struct group_list): New field. (build_group_lists): Use hash lookup. (free_section_idx): New function. (elf_frob_file): Adjust. * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables. (get_line_subseg): Adjust. (dwarf2_init): New function. * dwarf2dbg.h (dwarf2_init): New declaration.
2005-07-22merge from gccDJ Delorie1-2/+2
2005-07-15merge from gccDJ Delorie1-2/+4
2005-07-12merge from gccDJ Delorie1-1/+1
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-2/+2
2005-04-13merge from gccDJ Delorie1-2/+2
2005-04-13merge from gccDJ Delorie1-8/+8
2005-03-28merge from gccDJ Delorie1-291/+170
2004-11-20merge from gccDJ Delorie1-2/+4
2004-02-17merge from gccDJ Delorie1-2/+4
2003-04-15merge from gccDJ Delorie1-1/+1
2002-09-20merge from gccDJ Delorie1-1/+1
2002-09-06merge from gccDJ Delorie1-1/+1
2002-08-07merge from gccDJ Delorie1-81/+25
2001-11-16merge from gccDJ Delorie1-2/+2
2001-11-15merge from gccDJ Delorie1-4/+13
2001-11-13merge from gccDJ Delorie1-1/+1
2001-08-23merge from gccDJ Delorie1-14/+58
2001-08-13merge from gccDJ Delorie1-2/+2
2001-07-30merge from gccDJ Delorie1-46/+107
2001-07-19merge from gccDJ Delorie1-10/+24
2001-07-11merge from gccDJ Delorie1-0/+8245