public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18551] New: wrong asm output for -ffunction-sections with g++
@ 2004-11-18 19:33 bernie at develer dot com
  2004-11-18 20:31 ` [Bug target/18551] wrong asm output for -mcall-prologues " bernie at develer dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bernie at develer dot com @ 2004-11-18 19:33 UTC (permalink / raw)
  To: gcc-bugs

The backend outputs invalid assembly containing
full function signatures when compiling C++
sources with -ffunction-sections:

  ldi r30,pm_lo8(.L_bool updateEEParam(uint16_t, uint8_t*)_body)

I'm not sure this is AVR specific, but it doesn't
certainly happen on i386-linux.

-- 
           Summary: wrong asm output for -ffunction-sections with g++
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: denisc at overta dot ru
        ReportedBy: bernie at develer dot com
                CC: gcc-bugs at gcc dot gnu dot org,marekm at amelek dot gda
                    dot pl
GCC target triplet: avr


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/18551] wrong asm output for -mcall-prologues with g++
  2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
@ 2004-11-18 20:31 ` bernie at develer dot com
  2004-11-18 20:40 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bernie at develer dot com @ 2004-11-18 20:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bernie at develer dot com  2004-11-18 20:30 -------
Oops, this PR should have been about "-mcall-prologues",
not "-ffunction-sections".


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-18 20:30:50
               date|                            |
            Summary|wrong asm output for -      |wrong asm output for -mcall-
                   |ffunction-sections with g++ |prologues with g++


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/18551] wrong asm output for -mcall-prologues with g++
  2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
  2004-11-18 20:31 ` [Bug target/18551] wrong asm output for -mcall-prologues " bernie at develer dot com
@ 2004-11-18 20:40 ` pinskia at gcc dot gnu dot org
  2005-03-20 21:12 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-18 20:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-18 20:40 -------
You should not use:
      const char *cfun_name = current_function_name ();


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/18551] wrong asm output for -mcall-prologues with g++
  2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
  2004-11-18 20:31 ` [Bug target/18551] wrong asm output for -mcall-prologues " bernie at develer dot com
  2004-11-18 20:40 ` pinskia at gcc dot gnu dot org
@ 2005-03-20 21:12 ` cvs-commit at gcc dot gnu dot org
  2005-03-20 21:13 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-20 21:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-20 21:12 -------
Subject: Bug 18551

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	marekm@gcc.gnu.org	2005-03-20 21:12:09

Modified files:
	gcc            : ChangeLog 
	gcc/config/avr : avr.c 

Log message:
	PR target/18551
	* config/avr/avr.c (avr_output_function_prologue): Do not use
	current_function_name() in a label, use a local label instead.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7922&r2=2.7923
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/avr/avr.c.diff?cvsroot=gcc&r1=1.131&r2=1.132



-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/18551] wrong asm output for -mcall-prologues with g++
  2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
                   ` (2 preceding siblings ...)
  2005-03-20 21:12 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-20 21:13 ` cvs-commit at gcc dot gnu dot org
  2005-03-20 21:14 ` cvs-commit at gcc dot gnu dot org
  2005-03-20 23:54 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-20 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-20 21:13 -------
Subject: Bug 18551

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	marekm@gcc.gnu.org	2005-03-20 21:13:13

Modified files:
	gcc            : ChangeLog 
	gcc/config/avr : avr.c 

Log message:
	PR target/18551
	* config/avr/avr.c (avr_output_function_prologue): Do not use
	current_function_name() in a label, use a local label instead.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.69&r2=2.7592.2.70
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/avr/avr.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.129.6.1&r2=1.129.6.2



-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/18551] wrong asm output for -mcall-prologues with g++
  2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
                   ` (3 preceding siblings ...)
  2005-03-20 21:13 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-20 21:14 ` cvs-commit at gcc dot gnu dot org
  2005-03-20 23:54 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-20 21:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-20 21:14 -------
Subject: Bug 18551

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	marekm@gcc.gnu.org	2005-03-20 21:14:28

Modified files:
	gcc            : ChangeLog 
	gcc/config/avr : avr.c 

Log message:
	PR target/18551
	* config/avr/avr.c (avr_output_function_prologue): Do not use
	current_function_name() in a label, use a local label instead.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.823&r2=2.2326.2.824
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/avr/avr.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.108.4.5&r2=1.108.4.6



-- 


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/18551] wrong asm output for -mcall-prologues with g++
  2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
                   ` (4 preceding siblings ...)
  2005-03-20 21:14 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-20 23:54 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-20 23:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-20 23:54 -------
Fixed.  Please as normal send the patch to gcc-patches@.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.4


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-03-20 23:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-18 19:33 [Bug target/18551] New: wrong asm output for -ffunction-sections with g++ bernie at develer dot com
2004-11-18 20:31 ` [Bug target/18551] wrong asm output for -mcall-prologues " bernie at develer dot com
2004-11-18 20:40 ` pinskia at gcc dot gnu dot org
2005-03-20 21:12 ` cvs-commit at gcc dot gnu dot org
2005-03-20 21:13 ` cvs-commit at gcc dot gnu dot org
2005-03-20 21:14 ` cvs-commit at gcc dot gnu dot org
2005-03-20 23:54 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).