3 msgCan I force gcc not to optimize calling to leaf...
2 msgV_MUST_DEF vs V_MAY_DEF ?

Signedness of char and puts()
\ Ed Stafford (28 Mar 2008)
. \ Eljay Love-Jensen (28 Mar 2008)
. . \ me22 (29 Mar 2008)
. . \ Matthew Woehlke (29 Mar 2008)
. . . \ Eljay Love-Jensen (29 Mar 2008)
. . \ Michael Eager (31 Mar 2008)
. . . \ John Love-Jensen (31 Mar 2008)
. . . . \ Michael Eager (31 Mar 2008)
. . . . . \ Ed Stafford (31 Mar 2008)
. . . . . . \ Michael Eager (31 Mar 2008)
. . \ lynx.abraxas (17 Apr 2008)
. . . \ Eljay Love-Jensen (17 Apr 2008)

6 msgcompile with no prefix
3 msgnewbie trying to install and build
5 msgambiguous std::fill with character array
4 msgC++ Macros, ##, and ::
3 msgnewbie question on linking classes
2 msgBuild Failure for gcc 4.3.0
3 msgDoes GCC really recognize __attribute__ ((bitwi...
2 msgstatic stack check
16 msgProblem with exceptions on arm
1 msgThe Latest
13 msgIssue on X86_64?
1 msgcross compiling on different hosts
2 msgProblem with static library linking
6 msg[help] undefined reference to `_Unwind_SjLj_Reg...
2 msgGSoC - GCC Multithreaded linker
7 msggcc for windows
2 msgHow does GCC4 transform GIMPLE IR to SSA?
Subject:Re: Signedness of char and puts()
Group:Gcc-help
From:Michael Eager
Date:31 Mar 2008


Ed Stafford wrote:
> Thanks for the replies.
>
> It does seem that gcc is treating them as 3 separate
> types.
>
> The compiler will treat plain char as signed or unsigned
> depending on the ABI, but even if the default is for char
> to act like unsigned char, it will warn you that char and
> unsigned char are of different types.
>
>>From the docs:
>
> Which of signed char or unsigned char has the same range,
> representation, and behavior as "plain" char. Determined by ABI.
> The options '-funsigned-char' and '-fsigned-char' change the
> default.
>
> It just seems that older versions of gcc didn't do this.
>
> Does it seem I'm on the right track here?

Yes. It appears that you will only get these messages
if you specify -Wall. I don't see any messages on a
compile without the flag.

--
Michael Eager eager
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077


© 2004-2008 readlist.com