public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Is cross-section inlining valid behaviour?
@ 2008-07-23 14:59 Bingfeng Mei
  2008-07-23 15:07 ` Richard Guenther
                   ` (2 more replies)
  0 siblings, 3 replies; 50+ messages in thread
From: Bingfeng Mei @ 2008-07-23 14:59 UTC (permalink / raw)
  To: gcc

Hello, 

I came across a problem related to cross-section inlining. For the
following example, 

static void foo(void) __attribute__((section ("foo")));
 
static void foo(void)
{
  printf("Hello\n");
}
 
void bar(void) __attribute__((section ("bar")));
 
void bar(void)
{
  foo();
}

 
I compiled with the latest mainline gcc. 
gcc tst.c -O3 -S


The foo function is inlined into bar anyway even they have different
section attribute.  Is this a bug or expected behaviour? 
	.file	"tst.c"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Hello"
	.section	bar,"ax",@progbits
	.p2align 4,,15
.globl bar
	.type	bar, @function
bar:
.LFB3:
	movl	$.LC0, %edi
	jmp	puts
.LFE3:


Thanks. 
Bingfeng Mei

^ permalink raw reply	[flat|nested] 50+ messages in thread
* Re: gcc will become the best optimizing x86 compiler
@ 2008-07-30 15:34 Eus
  2008-07-30 16:09 ` Dennis Clarke
  0 siblings, 1 reply; 50+ messages in thread
From: Eus @ 2008-07-30 15:34 UTC (permalink / raw)
  To: Dennis Clarke; +Cc: GCC Development Mailing List

Hi Ho!

--- On Tue, 7/29/08, "Dennis Clarke" <blastwave@gmail.com> wrote:

> hold on .. on the NEWS page I see ... okay .. how very user friendly.
> Sort of the thing one would put on the project homepage I would think.

Do you mind to tell me what you saw?
I was looking for the interesting part on the latest release of the NEWS on the CVS but to no avail.

Thank you for your help.

> Dennis

Best regards,
Eus


      

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

end of thread, other threads:[~2008-07-31  9:36 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-23 14:59 Is cross-section inlining valid behaviour? Bingfeng Mei
2008-07-23 15:07 ` Richard Guenther
2008-07-23 15:14 ` Dave Korn
2008-07-23 15:31   ` Bingfeng Mei
2008-07-23 17:25 ` gcc will become the best optimizing x86 compiler Agner Fog
2008-07-23 17:33   ` Tim Prince
2008-07-24  8:04   ` Dennis Clarke
2008-07-24  9:41     ` Agner Fog
2008-07-24 10:10       ` Dave Korn
2008-07-24 13:20         ` Basile STARYNKEVITCH
2008-07-24 13:31           ` Dave Korn
2008-07-24 13:59           ` Agner Fog
2008-07-24 14:40             ` Richard Guenther
2008-07-28 10:57             ` Andrew Haley
2008-07-24 15:02           ` Joseph S. Myers
2008-07-24 16:26             ` Agner Fog
2008-07-24 17:17             ` Basile STARYNKEVITCH
2008-07-24 17:21       ` Raksit Ashok
2008-07-25  7:23         ` Agner Fog
2008-07-26  0:23           ` Michael Meissner
2008-07-26 17:49             ` Agner Fog
2008-07-28 11:45             ` Agner Fog
2008-07-28 14:40               ` Daniel Jacobowitz
2008-07-28 17:37                 ` Dennis Clarke
2008-07-28 17:54                   ` Paolo Carlini
2008-07-28 18:31                     ` Dennis Clarke
2008-07-28 18:37                       ` Ian Lance Taylor
2008-07-28 19:44                       ` Dave Korn
2008-07-28 21:40                         ` Dennis Clarke
2008-07-29  1:31                       ` Gerald Pfeifer
2008-07-29  6:29                         ` Agner Fog
2008-07-29  9:24                           ` Ben Elliston
2008-07-31  8:12                             ` Christopher Faylor
2008-07-28 17:19               ` Michael Matz
2008-07-29  6:15                 ` Agner Fog
2008-07-29  9:31                   ` Richard Guenther
2008-07-29  9:55                     ` Steven Bosscher
2008-07-29 13:09                       ` Joseph S. Myers
2008-07-29 14:11                   ` Michael Matz
2008-07-29 14:45                   ` Tim Prince
2008-07-30 16:37           ` Denys Vlasenko
2008-07-30 16:40             ` Denys Vlasenko
2008-07-30 17:52               ` Agner Fog
2008-07-30 22:42                 ` Dennis Clarke
2008-07-31  2:57                 ` Denys Vlasenko
2008-07-31  8:18                   ` Agner Fog
2008-07-31 11:00                     ` Dave Korn
2008-07-24 10:09   ` Zoltán Kócsi
2008-07-30 15:34 Eus
2008-07-30 16:09 ` Dennis Clarke

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).