This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/30700] [4.2 Regression] YA bogus undefined reference error to static func with -g and -O



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-04-04 12:46 -------
Fixed on the mainline by

Author: hubicka
Date: Fri Mar 30 09:03:55 2007
New Revision: 123358

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123358
Log:
        PR middle-end/PR30700
        * dwarf2out.c (reference_to_unused): Ask cgraph for functions 
        availablility; add more sanity checking; ask varpool only about
        VAR_DECL.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|4.1.1 4.1.2                 |4.1.1 4.1.2 4.3.0
            Summary|[4.2/4.3 Regression] YA     |[4.2 Regression] YA bogus
                   |bogus undefined reference   |undefined reference error to
                   |error to static func with -g|static func with -g and -O
                   |and -O                      |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30700


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]