This is the mail archive of the gcc-patches@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]

Re: gcc corrections for better pie support


"Peter S. Mazinger" <ps.m@gmx.net> writes:
> like the attached?

Yep, looks good to me, thanks.  It'll obviously need to be tested
before being applied: let me know what sort of testing you've done.

Also, one small nit:

>  #define TARGET_OS_CPP_BUILTINS()				\
>      do {							\
>  	LINUX_TARGET_OS_CPP_BUILTINS();				\
> -	builtin_define ("__PIC__");				\
> -	builtin_define ("__pic__");				\
> +	if (TARGET_ABICALLS)					\
> +	{							\
> +	  builtin_define ("__PIC__");				\
> +	  builtin_define ("__pic__");				\
> +	}							\

The braces and contents should be indented by 2 more spaces.

Richard


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