This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc ChangeLog c-decl.c c-pragma.c output.h ...
- From: sirl at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 28 Apr 2002 18:43:58 -0000
- Subject: gcc/gcc ChangeLog c-decl.c c-pragma.c output.h ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_1-branch
Changes by: sirl@gcc.gnu.org 2002-04-28 11:43:58
Modified files:
gcc : ChangeLog c-decl.c c-pragma.c output.h varasm.c
gcc/cp : ChangeLog decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: weak-2.c weak-3.c weak-4.c weak-5.c
weak-6.c weak-7.c
Log message:
2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR c/6343
* c-decl.c (duplicate_decls): Call merge_weak.
* c-pragma.c (apply_pragma_weak): Warn about misuse.
* output.h (merge_weak): Prototype merge_weak.
* varasm.c (merge_weak): New function.
(declare_weak): Make sure we don't give an error on VAR_DECLs.
Mark RTL with SYMBOL_REF_WEAK.
cp:
* decl.c (duplicate_decls): Call merge_weak.
testsuite:
* gcc.dg/weak-[2-7].c: New tests.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.13152.2.461&r2=1.13152.2.462
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.300.2.6&r2=1.300.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pragma.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.46.6.3&r2=1.46.6.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/output.h.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.94.2.1&r2=1.94.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.250.2.7&r2=1.250.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.2685.2.71&r2=1.2685.2.72
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.866.2.25&r2=1.866.2.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=1.1672.2.120&r2=1.1672.2.121
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/weak-2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/weak-3.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/weak-4.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/weak-5.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/weak-6.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/weak-7.c.diff?cvsroot=gcc&only_with_tag=gcc-3_1-branch&r1=NONE&r2=1.1.2.1